Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9 stuck on Swift 4 migration

Tags:

ios

swift4

xcode9

I'm trying to migrate my Swift 3 project to Swift 4 in Xcode 9. After selecting target and choosing either of @obcj inference options, Xcode stuck on Generating preview spinning wheel forever. How can I migrate my project?

like image 745
Alexander Vasenin Avatar asked Dec 05 '22 13:12

Alexander Vasenin


1 Answers

On the same conversion dialog uncheck Remind me checkbox and click Convert Later. Now go to Build Settings and change Swift Language Version to Swift 4.0. Most likely this will produce a lot of warnings or errors. Unfortunately you have to fix them manually.

like image 165
Alexander Vasenin Avatar answered Dec 25 '22 23:12

Alexander Vasenin