Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No identity found common bin/sh/ error

I have created app id and also provision profile for my distribution.When i archive or build my app using distribution profile,i got the following error

PhaseScriptExecution Embed\ Pods\ Frameworks /Users/Htarwara6245/Library/Developer/Xcode/DerivedData/HSSECrix-cgteuxpjvsdrnhdqwjbwqyoqsqpc/Build/Intermediates/HSSECrix.build/Debug-iphoneos/HSSECrix.build/Script-FB973BA3854BA671C46AFE96.sh
cd /Users/Htarwara6245/Documents/workspace/iOS/HSSECrix
/bin/sh -c /Users/Htarwara6245/Library/Developer/Xcode/DerivedData/HSSECrix-cgteuxpjvsdrnhdqwjbwqyoqsqpc/Build/Intermediates/HSSECrix.build/Debug-iphoneos/HSSECrix.build/Script-FB973BA3854BA671C46AFE96.sh

mkdir -p /Users/Htarwara6245/Library/Developer/Xcode/DerivedData/HSSECrix-cgteuxpjvsdrnhdqwjbwqyoqsqpc/Build/Products/Debug-iphoneos/HSSECrix.app/Frameworks
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/Htarwara6245/Library/Developer/Xcode/DerivedData/HSSECrix-cgteuxpjvsdrnhdqwjbwqyoqsqpc/Build/Products/Debug-iphoneos/Alamofire.framework" "/Users/Htarwara6245/Library/Developer/Xcode/DerivedData/HSSECrix-cgteuxpjvsdrnhdqwjbwqyoqsqpc/Build/Products/Debug-iphoneos/HSSECrix.app/Frameworks"
building file list ... done
Alamofire.framework/
Alamofire.framework/Alamofire
Alamofire.framework/Info.plist
Alamofire.framework/_CodeSignature/
Alamofire.framework/_CodeSignature/CodeResources

sent 1203761 bytes  received 98 bytes  2407718.00 bytes/sec
total size is 1203264  speedup is 1.00
Code Signing /Users/Htarwara6245/Library/Developer/Xcode/DerivedData/HSSECrix-cgteuxpjvsdrnhdqwjbwqyoqsqpc/Build/Products/Debug-iphoneos/HSSECrix.app/Frameworks/Alamofire.framework with Identity iPhone Distribution: xxxx (28J87M7DQU)
/usr/bin/codesign --force --sign 7EC847A7363D5591F3061E94631865E1EB36D1D7 --preserve-metadata=identifier,entitlements "/Users/Htarwara6245/Library/Developer/Xcode/DerivedData/HSSECrix-cgteuxpjvsdrnhdqwjbwqyoqsqpc/Build/Products/Debug-iphoneos/HSSECrix.app/Frameworks/Alamofire.framework"
7EC847A7363D5591F3061E94631865E1EB36D1D7: no identity found
Command /bin/sh failed with exit code 1

I am tired of this problem happening.For me searching at the google and do things.Didn't solve out.Any help please?

like image 964
Thiha Aung Avatar asked Mar 18 '16 09:03

Thiha Aung


People also ask

What is the default identity file for ssh-add?

If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your ssh-agent. Otherwise, if this: ssh-add -L provides any output, it uses that in preference to the identity file

What is the use of /bin/sh in Linux?

The /bin/sh is used to run the file with sh, a Bourne shell, or another comparable shell. While using the fypll repository, you can confront the error “bin/sh: 1: source not: found” when you start activating that using the below command:

How to find the SSH-copy-ID file generated by ssh-keygen?

The ssh-copy-id is not able to locate the id_rsa.pub file that is generated by ssh-keygen in your system, Use the following command to complete: find the path of the.pub file: locate *.pub copy the path (ex: /home/user_name/.ssh/id_rsa.pub) and run the following command: ssh-copy-id -i /home/user_name/.ssh/id_rsa.pub hostname

What does it mean when the source file is not found?

It does not mean that the source file is not found; it means the source you are trying to access is not found, the source is a Bash built-in function, and the script isn’t run with bash Instead of source, “.” is supported by some shells.


1 Answers

I have similar problem recently and looks like it was due to on developer portal I have updated provision profile. So I just delete old provision and download updated version.

Xcode -> Preferences... -> Accounts -> Choose your Apple ID -> View Details...

Also sometimes helps deleting Derived Data for this project.

Window -> Projects -> Choose your project

like image 143
evfemist Avatar answered Oct 07 '22 22:10

evfemist