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

pkaur picture pkaur · Jun 12, 2015 · Viewed 7.7k times · Source

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.

Answer

0x416e746f6e picture 0x416e746f6e · Jun 12, 2015

Product -> Clean helped in my case.