Nameless
Nameless

Reputation: 41

XCode Build is working fine but cant archive my App

I cant archive my iOS app for some reason but its working all fine on the Build on debug and release mode both.

That's the error i am getting :

Warning: unable to build chain to self-signed root for signer "Apple Development: (MY DEVELOPER NAME) (ID)"

/Users/USERNAME/Library/Developer/Xcode/DerivedData/PSHotels-cmlgwueeqxkynaewfwzpeiuqoeyr/Build/Intermediates.noindex/ArchiveIntermediates/Serai Rooms/InstallationBuildProductsLocation/Applications/Serai Rooms.app/Frameworks/Alamofire.framework: errSecInternalComponent

Command PhaseScriptExecution failed with a nonzero exit code

Things i already tried :

  1. Deleting derived data
  2. Lock and unlock the login fro Keychain
  3. Restarting Mac and Xcode

Upvotes: 1

Views: 1348

Answers (1)

Nameless
Nameless

Reputation: 41

This issue is now resolved.

You need to delete all your developer account certificates and and also remove the account. Then add the account and let the Xcode create new certificates for you. And then try archiving the project. Thats how my problem got solved.

Upvotes: 2

Related Questions