Skip to content

Instantly share code, notes, and snippets.

@mekanics
Last active August 29, 2015 14:22
Show Gist options
  • Save mekanics/509d72916863c72f1ab9 to your computer and use it in GitHub Desktop.
Save mekanics/509d72916863c72f1ab9 to your computer and use it in GitHub Desktop.
Push your app to iTunesConnect. also useful for CI jobs...
#!/bin/bash
ln -s "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool" /usr/local/bin/altool
ln -s "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms" /usr/local/bin/itms #itms is needed, otherwise altool will not work correctly
#!/bin/bash
cd DerivedData
altool --upload-app -f `find . -name "*.ipa" -exec stat -f'%N' {} +|sort -rn | head -n1` -u [your-AppleID] -p @keychain:[AppleID-KeyName-in-the-keychain]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment