Xcode swift failed with exit code 254

前端 未结 7 2262
灰色年华
灰色年华 2021-02-07 14:14

I am getting this compiler error in my code and I can\'t figure out why:

:0: error: unable to execute command: Segmentation fault: 11


        
相关标签:
7条回答
  • 2021-02-07 14:47

    I was getting the same error and I tracked it down to this: I was extending NSError and in the extension was defining an enum. Moving the enum definition out of the extension fixed the error.

    extension NSError {
        enum WYBErrorCodes: Int {
            case Fatal = 1000
            case XmlParse = 1100
            case CoreData = 1200
        }
    
        [...]
    }
    
    0 讨论(0)
提交回复
热议问题