Xcode Project stuck “Compiling Swift source files”

不打扰是莪最后的温柔 提交于 2019-12-12 11:51:11

问题


My Xcode project had decided not to build and simple get stuck on "Compiling Swift source files". I'm running a completely Swift project with CocoaPods. I've tried clearing all derived data, cleaning the project, and restarting my computer. I've had no luck. I'm not exactly sure why this is happening. If anyone has any ideas to fix this, it would be greatly appreciated.

Thanks!


回答1:


In my case, the problem was in a complicated dictionary. I was creating a big dictionary for JSON parsing tests and the compiling never finished.

When I split the big dictionary into smaller pieces, everything worked OK.




回答2:


Have you tried to compile last files in Report Navigator in Command line? I tried to run the command and found a file that causes the stuck http://applytech.me/blog/build-stuck-after-upgrading-from-xcode-6-to-xcode-7/



来源:https://stackoverflow.com/questions/36066756/xcode-project-stuck-compiling-swift-source-files

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