Created
March 2, 2014 01:26
-
-
Save itsthejb/c913fba951cee9681ef6 to your computer and use it in GitHub Desktop.
XCTool Workflow for Archive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $WORKSPACE | |
rm -rf Build | |
security unlock-keychain -p '<password>' ~/Library/Keychains/login.keychain | |
agvtool -noscm new-version -all "$BUILD_NUMBER" | |
/usr/local/bin/xctool -workspace <workspace>.xcworkspace -scheme <scheme> -sdk 'iphoneos' clean archive -archivePath Build/<target-name> | |
/usr/bin/xcodebuild -exportArchive -exportProvisioningProfile <profile-name> -archivePath Build/<target-name>.xcarchive/ -exportPath Build/<target-name>.ipa > /dev/null | |
pushd Build/<target-name>.xcarchive/dSYMs/ | |
zip -r ../../dSYM.zip <target-name>.app.dSYM/ > /dev/null | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment