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

蓝咒 提交于 2019-12-04 04:11:37

Product -> Clean helped in my case.

Pavlo Shadov

Switch ENABLE_BITCODE to NO in project build settings helped me.

Quinn H.

I had an issue similar to this, and I fixed it by changing the build phases/ compile sources in the project :

I had added in new sources that needed to be compiled earlier in the project, and after i deleted the files, when I tried to build the project it said it was missing the files that I deleted. After deleting a few of the build phases that appeared as though they were not the default build phases, it worked fine. I found that there were a default of 4 compile sources.

Also, using Ctrl+Shift+K will clean your project, which helped me another time with an error like this.

I was having the same issue, and none of the above answers helped. Apparently, my issue was I had an import using a .m file instead of a .h file.

The easy way to find and fix these would be Find > Find in Project... and searching for #import.*m and changing them to the appropriate .h file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!