Command failed due to signal: Abort trap: 6

前端 未结 30 2647
暖寄归人
暖寄归人 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:46

    for me.. I modified the content of a @objc function like so:

    before:

            @objc func didConnectWithSession() {
               context!.stream.disconnectAfterSending()
            }
    

    after:

            @objc func didConnectWithSession() {
               //context!.stream.disconnectAfterSending()
            }
    

    This caused the error. I resolved by removing the entire function.

提交回复
热议问题