Project building started failing when I updated Xcode to 12.5. I’m getting two errors: CompileSwift failed with a nonzero exit code
and Segmentation fault: 11
Each of these errors is printing out bunch of swift
files which are normally used in project.
I’ve tried with clean build, removing derived data, updating pods, and even restarting laptop and nothing works.
Checkout images:
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
2
Answers
I didn't find the solution for this with Xcode 12.5 but everything works fine on Xcode 13 beta.
So, installing Xcode 13 fixed this issue for me.
TL;DR;
My case, one of my swiftUI file, before Xcode 12.5:
The new fix:
I had similar issue, some of my swift files are not recognising core data entities’ property with only
Xcode 12.5
, and many files shows segment fault 11 error with no details at all.What I found is that, even some swift files are with no compel error, if you open it, then it will shows some of the error with details. So you can try to open every single source code file, and wait for the Xcode to highlight the swift syntax, if the syntax can be highlighted it will be fine, and if not, it may show some detailed errors.