Reputation: 267
Showing Recent Messages :-1: Code Signing /Users/.../Library/Developer/Xcode/DerivedData/ProjectName-bszhnyuqdhgiqaaeosxrsxfkscut/Build/Products/Debug-iphoneos/ProjectName.app/Frameworks/Alamofire.framework with Identity iPhone Developer: MyName (H837F7ABC3)
:-1: /usr/bin/codesign --force --sign 59878098645E516950920B15DC30E4E94D7CADAD --preserve-metadata=identifier,entitlements '/Users/.../Library/Developer/Xcode/DerivedData/ProjectName-bszhnyuqdhgiqaaeosxrsxfkscut/Build/Products/Debug-iphoneos/ProjectName.app/Frameworks/Alamofire.framework'
:-1: /Users/marcel/Library/Developer/Xcode/DerivedData/VoiceMe-bszhnyuqdhgiqaaeosxrsxfkscut/Build/Products/Debug-iphoneos/VoiceMe.app/Frameworks/Alamofire.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code
I've installed the pods like 10 times ... cleaned and build the project not working also.
I'm running Xcode 10 and try to run it on a device.
Signing worked before just fine.
Upvotes: 11
Views: 29158
Reputation: 77
Try to add another team account in Signing section and run
After that you will see error , Then change it to your own account again and run
It will ask for your keychain password , Give the password and press "alway allow"
Then your good to go :)
Upvotes: 0
Reputation: 502
You can do lock/unlock keychain from terminal
sudo security lock-keychain ~/Library/Keychains/login.keychain-db
sudo security unlock-keychain ~/Library/Keychains/login.keychain-db
Upvotes: 1
Reputation: 726
I know this is old but I just stumbled upon this issue with Xcode 11.3 and the only thing that worked was to completely remove Cocoa pods from the project and install it again from command line as ChavirA suggested in this post:
$ sudo gem install cocoapods-deintegrate cocoapods-clean
$ pod deintegrate
$ pod clean
$ pod install
hope it helps :D
Upvotes: 3
Reputation: 149
to fix that problem, you also can try "Try opening Keychain Access.app. Right-click on the login keychain and try locking it and then unlocking it again."
In my case, it's resolved my problem with codesign :)
Upvotes: 0
Reputation: 11
Open terminal, navigate to the directory of your Xcode project and type:
pod update
This should solve the problem.
Upvotes: 1
Reputation: 1003
I have facing the same issue, i believe this issue have something link to keychain access too (code signing problem), I go to keychain access unlock the login then lock it again fixed this issue
. After uploading toOSMojave
and Xcode 10 keychain need to reverify the password. (how i find this? while facing same issue and trying all available option, i think to generate certificate again, but while generating private key i found keychain login user name and password is wrong type of message- i lock and unlock again solved my problem). Note this process required your login pass phare.
Upvotes: 33
Reputation: 349
On errors like this (i.e. with no clear cause), I look at the error message detail to see if DerivedData is referenced as that can occasionally create issues even after you've cleaned the project (using Shift + Cmd + K).
Your error is referencing DerivedData (/Users/marcel/Library/Developer/Xcode/DerivedData/...) so the first thing I would do to troubleshoot would be to navigate to the DerivedData folder, find the respective project folder there and delete it. Then go back to Xcode and attempt to build the project.
Upvotes: 1