6

On Xcode 8.1, when i build or archive, the frameworks codesigning takes crazy big amount of time. Like i see following (see screenshot) for 5-10-20 seconds for each framework/dylib i use in my project. It is also a case for any system dylib.

enter image description here

I even suggest that i often get This Action could not be completed. Try Again (-22421) because my session runs out of time, because archive time is so slow. Any thoughts on this?

rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

5

Are you running Sierra?

If you do, have you checked for duplicated certificates and keys on your Keychain?

Also, check for duplicated references for keychain's databases in the following file: ~/Library/Preferences/com.apple.security.plist

NOTE: This is basically a summary of the following threads:

Hope that helps ;)

Community
  • 1
  • 1
portella
  • 833
  • 6
  • 14
  • 1
    The bit about `~/Library/Preferences/com.apple.security.plist` was the helpful bit for me. Excellent find!! – Tokuriku Feb 10 '17 at 02:41