7

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
  • 1
    just quit the xcode, delete all derived data..then restart xcode, clean it then try to build. Commented Jun 3, 2015 at 9:02

2 Answers 2

5

Just try to enabling Whole Module Optimization

enter image description here

This link can help you.

https://developer.apple.com/swift/blog/?id=27

Sign up to request clarification or add additional context in comments.

3 Comments

Solved it for me, on XCode 7.0.1
In my case it helped to switch Optimization Level to None for release. But I would not have guessed it without your answer.
My Project got a bit bigger on this version because of multi language stuff. Added a couple hundreds of strings and variables. The result? It was compiling and working, but couldn't archive to submit to the App Store. This answer made Xcode archive in seconds the app! Just changed to NONE and it was done! Thank you so much!
0

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/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.