Xcode 8: Preparing Archive takes forever

Luke Pistrol  picture Luke Pistrol · Oct 8, 2016 · Viewed 12.2k times · Source

Today I tried to archive and upload a App to iTunes Connect Beta Testing.

enter image description here

Xcode stays at the point "Copying Swift standard libraries" for about 10 minutes.. Two days ago it just were some seconds.. The CPU runs at 100% an the Fan is really really loud. it never did that before..

Then I try to upload it to the AppStore using the Organizer. But it stays ridiculously long at "Preparing Archive - Codesigning libswiftAVFoundation.dylib..."

enter image description here

I left it over night and it still was at the same spot.. I really don't know what to do. I need to upload this build as soon as possible.... Please help me somebody..

Edit: my setup: MacBook Pro Retina 13 2014, macOS 10.12.1 Beta

Answer

invoodoo picture invoodoo · Oct 28, 2016

I found the solution:

  1. Open Keychain
  2. Search for AppleID certificates (I found 1300+ of them)
  3. Delete all of them

Enjoy your fast-blast building with Xcode 8+! It seems like this is an issue with automatic signing feature from Xcode8.