Last Updated: February 25, 2016
·
699
· netbe

Split build and code signing phases of iOS app

Building (no signing)

> xcodebuild build  CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

Note: on jenkins set xcodebuild arguments CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

Code signing

> security unlock-keychain -p "${KEYCHAIN_PASSWORD}" "${KEYCHAIN_PATH}"

> codesign -f -s "${CODE_SIGNING_IDENTITY}"  --keychain="${KEYCHAIN_PATH}" --resource-rules "Payload/${APP_NAME}.app/ResourceRules.plist"  "Payload/${APP_NAME}.app"

This past is optional

--resource-rules "Payload/${APP_NAME}.app/ResourceRules.plist"