swift - Xcode 7 command failed due to signal: illegal instruction 4 -
i used xcode 7's migration tool migrate project swift 1.2 2. after fixing errors missed , such, except error prevents me building: command failed due signal: illegal instruction 4.
i have tried in these articles (xcode 7 , swift 2.0 : command failed due signal: abort trap: 6, , command failed due signal: abort trap: 6) not identical issues mine, nevertheless not able fix issue.
i have cleaned build , removed derived data folder. have date cocoapods installation, xcode tools @ 7.0, , swift compile optimization @ none. there else i'm missing?
thanks!
so answer found of coworker. found offending file in build error, there no line provided. through process of elimination, found line declaring new constant result of getting json dictionary ([string : anyobject], typealiased jsondictionary), inside optional dictionary. here line:
let objectsdictionary = maybejson?[key] as? jsondictionary
changed 2 guard statements:
guard let goodjson = maybejson as? jsondictionary else { return ... } guard let objectsdictionary = goodjson[key] as? jsondictionary else { return ... }
this line worked in xcode 6.3.2 provide optional value, reason, change in xcode 7 didn't this. hope can else runs across this.
Comments
Post a Comment