iamjerryyeung

Sunday, September 11, 2011

xcodebuild

http://stackoverflow.com/questions/2327257/name-of-provisioning-profile-used-to-sign-an-iphone-app

security find-identity -p codesigning -v;
http://stackoverflow.com/questions/866761/setting-a-provisioning-profile-from-within-xcodebuild-when-making-iphone-apps
http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson
#!/bin/bash

TARGET
="Your App"
CONFIGURATION
="Release"
SDK
="iphoneos"
PROFILE_PATH
="/Users/jkp/Desktop/foo.mobileprovision"
IDENTITY
="iPhone Distribution: Your Company Ltd"
KEYCHAIN
="/Users/jkp/Desktop/keychain"
PASSWORD
="foobar"

open
"${PROFILE_PATH}"
sleep
5
osascript
-e "tell application \"Xcode\" to quit"
security unlock
-keychain -p ${PASSWORD} ${KEYCHAIN}
xcodebuild
-target "${TARGET}" -configuration ${CONFIGURATION} -sdk iphoneos CODE_SIGN_IDENTITY="${IDENTITY}" OTHER_CODE_SIGN_FLAGS="--keychain ${KEYCHAIN}"

0 Comments:

Post a Comment

<< Home