Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Convert to latest Swift Syntax' breaks the build even when there are no changes

My project is in objective-c with just one tableviewcontroller in swift. I downloaded the Xcode-beta today which prompted me to 'Convert to latest Swift Syntax'. After I follow the steps it shows me that there are no changes. I do not see any changes in the proj file either but it has errors. Please note that I do not see the errors when I choose not to covert to latest swift syntax - the app builds and runs fine in this case.

Any idea why it is breaking?

Screenshot added

Here are the errors -

  • cannot parse the debug map for "app name" No such file or directory
  • clang: error: linker command failed with exit code 1 (use -v to see invocation)
  • the other errors are that it is not able to find the swift file. The swift class was initiated in the objective-c class.
like image 571
pkaur Avatar asked Jun 12 '15 21:06

pkaur


1 Answers

Switch ENABLE_BITCODE to NO in project build settings helped me.

like image 157
Pavlo Shadov Avatar answered Oct 09 '22 21:10

Pavlo Shadov