I just used Xcode 7's migration tool to migrate a project from Swift 1.2 to 2. After fixing up errors missed and such, all is well except for an error which prevents me from even building: Command failed due to signal: illegal instruction 4.
I have tried the help in these articles (Xcode 7 and Swift 2.0 : Command failed due to signal: Abort trap: 6, and Command failed due to signal: Abort trap: 6) which are not identical issues to mine, but nevertheless they were not able to fix the issue.
I have cleaned the build and removed the derived data folder. I have up to date CocoaPods installation, Xcode tools are at 7.0, and I Swift compile optimization is at None. Is there anything else I'm missing?
Thanks!
class A: B, P
butclass B
had a property enforced byprotocol P
. For some reason, not including the protocol in the class that really had the property was causing this error. I just madeclass B
include the protocol and the error went away! – dcestariref myAttribute
(assuming themyAttribute
was the name of the property) andref B
. – dcestari