Skip to content

Instantly share code, notes, and snippets.

@CodingAleCR
Forked from monmonja/generate-ios.sh
Created November 4, 2020 14:28
Show Gist options
  • Select an option

  • Save CodingAleCR/edc2562db697c5496bec4d5960e0eb8e to your computer and use it in GitHub Desktop.

Select an option

Save CodingAleCR/edc2562db697c5496bec4d5960e0eb8e to your computer and use it in GitHub Desktop.
generate ios from command line
# download this file to your project folder and excute
# chmod +x generate-ios.sh
# then run using
# ./generate-ios.sh
# flutter build defaults to --release
flutter build ios
# make folder, add .app then zip it and rename it to .ipa
mkdir -p Payload
mv ./build/ios/iphoneos/Runner.app Payload
zip -r -y Payload.zip Payload/Runner.app
mv Payload.zip Payload.ipa
# the following are options, remove Payload folder
rm -Rf Payload
# open finder and manually find the .ipa and upload to diawi using chrome
open .
open -a "Google Chrome" https://www.diawi.com/
@JimmisAtha
Copy link

Can I do this on Windows???

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