Skip to content

Instantly share code, notes, and snippets.

@arthurdenner
Forked from monmonja/generate-ios.sh
Last active January 3, 2020 17:21
Show Gist options
  • Save arthurdenner/7cabe39f3d8f6d6884e3360c0c4f4210 to your computer and use it in GitHub Desktop.
Save arthurdenner/7cabe39f3d8f6d6884e3360c0c4f4210 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 --no-codesign
# make folder, add .app then zip it and rename it to .ipa
mkdir -p Payload
cp -r ./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
open .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment