Created
September 10, 2020 12:41
-
-
Save chbeer/f3c75194e892f7cf1de490b268dfa68d to your computer and use it in GitHub Desktop.
Shell script to deploy to AppStoreConnect
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
#!/bin/bash | |
if [[ ! -e build ]]; then | |
mkdir build | |
fi | |
WORKSPACE=XcodeWorkspaceName | |
SCHEME=SchemeName | |
xcrun agvtool next-version -all | |
xcrun xcodebuild -quiet -workspace $WORKSPACE.xcworkspace archive -scheme $SCHEME -archivePath build/$SCHEME.xcarchive | |
xcrun xcodebuild -quiet -exportArchive -archivePath build/$SCHEME.xcarchive -exportOptionsPlist ExportOptions.plist \ | |
-exportPath build/deploy |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>method</key> | |
<string>app-store</string> | |
<key>teamID</key> | |
<string>YOUR_TEAM_ID</string> | |
<key>destination</key> | |
<string>upload</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment