问题
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