Command failed due to signal: Abort trap: 6

前端 未结 30 2649
暖寄归人
暖寄归人 2020-12-01 08:56

Since Xcode 7 and Swift 2.0, I get the error above, like in the screenshot shown here:

\"screenshot

30条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 09:41

    My case, Swift 5.1, Xcode 10.3 (10G8)

    Code was crashing Swift when a nested function was using the argument of an outer function as a default parameter.

    e.g.

    func foo(duration: TimeInterval) {
        func bar(duration: TimeInterval = duration) {
        }
    }
    

    I hope this helps.

提交回复
热议问题