Reputation: 4632
Xcode 7.1 while archiving app, hangs at 'Copying Swift standard libraries'.
Any idea why?
Upvotes: 26
Views: 4364
Reputation: 19853
For me it was the Wi-Fi connection. It seems that Xcode 8 tries to go out to the Internet for signing frameworks / apps and if that connection is really slow it takes a lot of time (for me up to 15 minutes). As soon as I changed the Wi-Fi network it built and ran in under 5 seconds.
Upvotes: 1
Reputation: 224
If you are not planning to release on AppStore and only creating an ad hoc build for testing, then do the following:
In Xcode 7, Goto Product -> Scheme -> Edit Scheme From the left menu select "Archive" and Select "Distribution" from the "Build Configuration" drop down.
Upvotes: 1
Reputation: 4632
For anyone else facing the same issue. After trying and failing everything else, it was fixed by restarting the mac :D
Upvotes: 24