Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command /usr/bin/codesign failed with exit code 1 #441

Open
stormdragon288 opened this issue Apr 17, 2018 · 3 comments
Open

Command /usr/bin/codesign failed with exit code 1 #441

stormdragon288 opened this issue Apr 17, 2018 · 3 comments

Comments

@stormdragon288
Copy link

stormdragon288 commented Apr 17, 2018

CodeSign /Users/xxxadmin/Library/Developer/Xcode/DerivedData/pokemon-webspoof-dkhdbbnvefaqnqfrzlmkxvdpnebh/Build/Products/Debug-iphoneos/Pokemon\ WebSpoof.app
cd /var/folders/pz/jp8pyttx3fq_5_66whf6v5t40000gn/T/tmp-31365D3gcm6J6gcpA/xcode-project
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity: "iPhone Developer: xxx@gmail.com (2RBWJ93R45)"
Provisioning Profile: "iOS Team Provisioning Profile: com.AceSpoofer.pokemon-webspoof"
(609e1915-67d6-4289-a458-54ca3b610df1)

/usr/bin/codesign --force --sign 04021ADAAB5651B421E9D79A648F44D6C98D27D7 --entitlements /Users/xxxadmin/Library/Developer/Xcode/DerivedData/pokemon-webspoof-dkhdbbnvefaqnqfrzlmkxvdpnebh/Build/Intermediates.noindex/pokemon-webspoof.build/Debug-iphoneos/Pokemon\ WebSpoof.build/Pokemon\ WebSpoof.app.xcent --timestamp=none /Users/xxxadmin/Library/Developer/Xcode/DerivedData/pokemon-webspoof-dkhdbbnvefaqnqfrzlmkxvdpnebh/Build/Products/Debug-iphoneos/Pokemon\ WebSpoof.app

/Users/xxxadmin/Library/Developer/Xcode/DerivedData/pokemon-webspoof-dkhdbbnvefaqnqfrzlmkxvdpnebh/Build/Products/Debug-iphoneos/Pokemon WebSpoof.app: unknown error -1=ffffffffffffffff
Command /usr/bin/codesign failed with exit code 1

How would one fix this? I had it working for a while, but then I accidentally deleted all my keychains a few month ago but this is an issue since I just tried doing it. Everything is set to standard.

screen shot 2018-04-16 at 11 04 06 pm

@chris249
Copy link

Try the following:

Open keychain access (Search in Spotlight for Keychain Access).
Lock the 'login' keychain (top left).
Unlock it.
Build after doing the above steps and everything works fine now.

@janvig
Copy link

janvig commented Jun 11, 2019

Hey @chris249 I am having the same issue when I try using the SwiftKeychainWrapper class in my project, the above method cannot solve the "Command /usr/bin/codesign failed with exit code 1" issue in my code.

@ssthil
Copy link

ssthil commented Aug 28, 2019

As @chris249 explained, the issue has been resolved and my react-native app is successfully running in my phone.

1. Open "Keychain Access"
image

2. Lock the "login" from the left menu (right-click and lock it)
image

3. Unlock it (right-click on 'lock' and unlock it)
4. In Xcode, Clean Build Folder and Build it again

Build successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants