Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
iOS automated deploy
xcodebuild \
-workspace Runner.xcworkspace \
-scheme Runner \
-sdk iphoneos \
-configuration Release archive \
-archivePath $PWD/build/Runner.xcarchive
xcodebuild \
-exportArchive \
-archivePath $PWD/build/Runner.xcarchive \
-exportOptionsPlist ExportOptions.plist \
-exportPath $PWD/build/Runner.ipa
<?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>destination</key>
<string>upload</string>
<key>method</key>
<string>app-store</string>
<key>teamID</key>
<string>MyTeamID</string> <!-- your team ID, something like "AB12C345DE" -->
<key>uploadBitcode</key>
<false/>
<key>uploadSymbols</key>
<true/>
<key>signingStyle</key>
<string>manual</string> <!-- sets the signing process as manual -->
<key>signingCertificate</key>
<string>Apple Distribution</string> <!-- or another Signing Certificate like "iOS Distribution" -->
<key>provisioningProfiles</key>
<dict>
<key>br.com.myapp</key> <!-- your app id -->
<string>MyAppProfile</string> <!-- the profile you're using to compile and deploy -->
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment