Xcode 7 compile error : “Command failed due to signal: Segmentation fault: 11”

前端 未结 25 2160
耶瑟儿~
耶瑟儿~ 2020-12-01 05:37

Yesterday I installed the official Xcode 7 and when I tried to open one of my Swift projects, appeared an alert saying that the new Xcode version wants to update my swift co

相关标签:
25条回答
  • 2020-12-01 06:23

    Here is how i fixed - first as suggested by many here, please read the log carefully. It actually tells you exactly the line number where it is failing and why it is failing. Just commenting that line out fixed the issue. In my case it was a type checking error. I am using Gloss structs for JSON parsing and it appears that as you go deeper in the JSON hierarchy sometimes the in-line parser does not recognise that there is a compile time issue. When you build the project it fails. Ideally type checking error should be recognised by the in-line parser. So this may be an issue with Xcode but its your code that is breaking it. When I read many of the posts - my analysis as follows.. root cause is related to type checking. When you are trying to assign incorrect types (optional or otherwise) and in-line parser does not recognise it in some instances. When you build it does recognise it and causes segmentation error. Its our code thats wrong despite a bug with Xcode it can be fixed if we read the logs carefully!

    0 讨论(0)
提交回复
热议问题