Skip to content

Instantly share code, notes, and snippets.

@itsthejb
Created March 2, 2014 01:26
Show Gist options
  • Save itsthejb/c913fba951cee9681ef6 to your computer and use it in GitHub Desktop.
Save itsthejb/c913fba951cee9681ef6 to your computer and use it in GitHub Desktop.
XCTool Workflow for Archive
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