简体   繁体   中英

Xcode Project stuck “Compiling Swift source files”

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!

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.

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM