Mohamed Lee
Mohamed Lee

Reputation: 267

Error Xcode 10 . PhaseScriptExecution failed with a nonzero exit code: errSecInternalComponent

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

Answers (7)

amirreza arampour
amirreza arampour

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

Stremovskyy
Stremovskyy

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

Rodrigo Ortega
Rodrigo Ortega

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

MeGaPk
MeGaPk

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

Veer Gadodia
Veer Gadodia

Reputation: 11

Open terminal, navigate to the directory of your Xcode project and type:

pod update

This should solve the problem.

Upvotes: 1

M Abubaker Majeed
M Abubaker Majeed

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

B-Rad
B-Rad

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

Related Questions