iam4x / pokemongo-webspoof

👾 Play Pokémon Go from your Mac
2.14k stars 228 forks source link

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

Open stormdragon288 opened 6 years ago

stormdragon288 commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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 commented 4 years ago

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