Reputation: 4110
I updated my iOS swift app to Swift 2 syntax. I solved all the errors as requested but the App does not compile at all. Instead I get this crazy error that I've never seen before:
What does this mean?
Upvotes: 0
Views: 220
Reputation: 86671
It's a compiler bug - the Swift compiler is crashing.
What you need to do is reduce the source file to only the lines that cause the segmentation fault and then you need to raise a bug report at Apple attaching the source file that causes the crash,
There may be an error in your code that is triggering the bug, but, nevertheless, the compiler should not crash.
Upvotes: 3
Reputation: 285220
The screenshot reveals that the errors are related to error handling.
Update your code to use the new error handling syntax like
do {
try someFunctionThatCanThrow()
// do something on success
} catch let error as NSError {
// do something on error
}
The error listing displays the code and the line where the error occurs for each error.
Upvotes: 0