Skip to content

Instantly share code, notes, and snippets.

@joaomarcos96
Last active March 19, 2021 21:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaomarcos96/a5b93bf3645b842a58353c79ac415a54 to your computer and use it in GitHub Desktop.
Save joaomarcos96/a5b93bf3645b842a58353c79ac415a54 to your computer and use it in GitHub Desktop.
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