I spent a lot of time trying to solve this problem myself and already double-checked the available answers on SO with the same error. So, here is a list of things that I have already excluded from possible reasons:
- There are no problems with the frames listed here . I created another project with the same frameworks, and everything is fine.
- No with SwiftyJSON , also works great in a test project
- The code does not highlight compilation problems
- I looked at two different
project.pbxproj files (from my original project and a new test project) using the comparison tool to find some differences in the project settings, anyway - I also compared build team commands for two projects and all the same
When I go to Report Navigator and look for every file that has not been compiled successfully, I find some strange correlation: any file that uses some of the NSString APIs cannot compile. To prove this assumption, I found a file that was compiled successfully and added the following line of code there
let abc = NSString(string: "abc")
and then this file also stops compiling.
So, for some files, it indicates that the String listing of the class object with as NSString invalid, somewhere the NSAttributedString / NSString creation worked, in some other places an incorrect call to compare or rangeOfString was called, etc. But when I copy all those code fragments that caused the Segmentation fault error for my new new project, they compiled successfully
And of course, this project compiled fine using Xcode 6 just one day ago
I donβt know where to go from here and how to fix these problems, any help would be very helpful
UPD
I uploaded a project that does not compile on GitHub
source share