In Xcode 9, I am trying to do an automatic conversion to Swift 4. It crashes with the following message:

Error navigating to current Swift syntax
Before attempting to migrate, make sure that all selected targets successfully worked with the current version of Swift.
He complains about the missing module. But when I do regular assembly, there are no problems. I'm not sure if this is relevant, but the module (which is not available in Xcode) has already been converted to Swift 4 earlier (it has its own project).
Note: Cocoapods / Carthage are not used here.
Note. Two solutions have tried (and worked), but do not address the underlying problem.
- One solution is to do the conversion manually (change the Swift version to 4 in the build setup and apply Fix-Its one at a time until there are no more build errors).
- Another solution is to disable the third-party structure (comment out all the code where it was used), perform automatic migration, and then turn on the framework again. It can get quite complicated with large projects.
ios xcode swift swift4 xcode9
Nikolay Suvandzhiev
source share