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"
Written by François Benaiteau
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ios
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#