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

I had the exact same error, and tried everything under the sun, including what was suggested elsewhere on this page. What the problem was for me was that in Keychain Access, the actual Apple WWDR certificate was marked as “Always Trust”. It needed to be “System Defaults”. That goes for your Development and Distribution certificates, … Read more

Building iOS applications using xcodebuild without codesign

In order to skip the code signing you can perform a manual build from the console like this: xcodebuild clean build CODE_SIGN_IDENTITY=”” CODE_SIGNING_REQUIRED=NO Additionally, use the -configuration, -target and -sdk parameters in order to define your build settings. Refer to this Stack Overflow answer in order to get a detailed description on how to disable … Read more

security / codesign in Sierra: Keychain ignores access control settings and UI-prompts for permission

The command you need to use is as follows: security set-key-partition-list -S apple-tool:,apple: -s -k keychainPass keychainName Please have in mind that this command line tool works like the list-keychains’s way of modification. If you execute set-key-partition-list with a single value it will overwrite all partitionIDs in the certificates. It won’t validate the values passed. … Read more

How do you codesign framework bundles for the Mac App Store?

Based on baptr’s answer, I have developed this shell script that codesigns all my frameworks and other binary resources/auxiliary executables (currently supported types: dylib, bundle, and login items): #!/bin/sh # WARNING: You may have to run Clean in Xcode after changing CODE_SIGN_IDENTITY! # Verify that $CODE_SIGN_IDENTITY is set if [ -z “${CODE_SIGN_IDENTITY}” ] ; then … Read more

Re-sign IPA (iPhone)

Finally got this working! Tested with a IPA signed with cert1 for app store submission with no devices added in the provisioning profile. Results in a new IPA signed with a enterprise account and a mobile provisioning profile for in house deployment (the mobile provisioning profile gets embedded to the IPA). Solution: Unzip the IPA … Read more

Codesign error: Provisioning profile cannot be found after deleting expired profile

Sometimes your Xcode project file gets messed up, especially if you have an old project and first created it with an older version of Xcode/iPhone SDK. What you need to do is open up the project file in a text editor, search for the ‘long string’ from your error and manually erase that line. In … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)