Command failed due to signal: Abort trap: 6

前端 未结 30 2595
暖寄归人
暖寄归人 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条回答
  •  Happy的楠姐
    2020-12-01 09:42

    To me what caused this error was:

    I created a file to create extensions on UIView. Inside this file, I created a private protocol named Foo.

    Then I made:

    extension UIView: Foo

    Removing the private from the protocol made the error go away.

    I guess this is probably a bug. The compiler should warn us about the issue. The same way it warns us we can't add private conformances to types it should tell us that conformance should be using a "public/internal" protocol.

提交回复
热议问题