Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 516
Mohamed Lee Avatar asked Sep 25 '18 13:09

Mohamed Lee


2 Answers

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

like image 53
Rodrigo Ortega Avatar answered Oct 23 '22 15:10

Rodrigo Ortega


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

pod update

This should solve the problem.

like image 39
Veer Gadodia Avatar answered Oct 23 '22 16:10

Veer Gadodia