Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save railson-ferreira/cf6819beee2e64b17c8180ea64238f78 to your computer and use it in GitHub Desktop.

Select an option

Save railson-ferreira/cf6819beee2e64b17c8180ea64238f78 to your computer and use it in GitHub Desktop.
Generate ExportOptions.plist
#!/usr/bin/env bash
CONTENT='<?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> <!-- app-store, ad-hoc, enterprise, development -->
<key>teamID</key>
<string>{TEAM_ID}</string>
<key>provisioningProfiles</key>
<dict>
<key>{APP_ID}</key>
<string>{PROVISIONING_PROFILE}</string>
</dict>
</dict>
</plist>'
echo "$CONTENT" | sed "s|{TEAM_ID}|$1|" | sed "s|{APP_ID}|$2|" | sed "s|{PROVISIONING_PROFILE}|$3|"
@railson-ferreira
Copy link
Author

curl -sSL https://gist.githubusercontent.com/railson-ferreira/cf6819beee2e64b17c8180ea64238f78/raw/5474d6e1129b5eb2534dedbf5d4184d61302c174/generate-export-options-plist.sh | bash -s TeamId AppId "Provisioning Profile Name"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment