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
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
}
[...]
}