Xcode error while converting Swift 4

I have a project that I am working on in Xcode 9.1, which is currently a Swift 3 project. I get a warning from Xcode that offers me to convert to Swift 4, but after clicking on it: Xcode crashes. Xcode also crashes when I go to Edit> Convert> To Modern Swift Syntax. I tried restarting Xcode and my computer failed.

This problem occurs only in this project, since I can easily convert other projects.

I tried to convert the Swift Language Version attribute in the build settings in Swift 4.0, but I'm still getting a warning.

The real kicker is that Xcode crashes, but then does not display a normal response to crashes (an option for reporting to Apple, displaying a crash log, etc.)

What can i fix? The project will still build, run and archive, but the warning bothers my OCD.

+7
xcode swift4
source share
1 answer

If you are using Xcode 9.1 and your project contains Swift Playground, try deleting it. They fixed this error in Xcode 9.2.

+1
source share

All Articles