问题
Xcode 6.3 gets stuck on "compiling swift source files" when I try to build for archive! it gets stuck on "compiling last two or three swift files". I waited nine hours but did not happen anything. Do you have any ideas for this problem ?
回答1:
Just try to enabling Whole Module Optimization

This link can help you.
https://developer.apple.com/swift/blog/?id=27
回答2:
For me, other solutions don't work for me. I tried to run the commands in Report Navigator and found the stuck file. Here is the study http://applytech.me/blog/build-stuck-after-upgrading-from-xcode-6-to-xcode-7/
来源:https://stackoverflow.com/questions/30615262/xcode-6-3-not-archive-and-get-stucks-when-compiling-swift-source-files