Xcode 10 convert to Swift 4.2 fails

Deepak Sharma picture Deepak Sharma · Sep 19, 2018 · Viewed 10.3k times · Source

I am getting this error trying to migrate to Swift 4.2 using the Xcode provided conversion tool. How do I fix it? The code builds fine otherwise.

enter image description here

Answer

Barbatosso picture Barbatosso · Sep 21, 2018

Do you have any libraries in your project? I think you are trying to covert your project with dependencies and there are problems in them with new swift version. Try to uncheck all dependencies except your project and convert to new version of Swift