Skip to content

Instantly share code, notes, and snippets.

@TheAlphamerc
Created November 12, 2019 05:04
Show Gist options
  • Save TheAlphamerc/642e63da2ff1aefbcc8762a364410547 to your computer and use it in GitHub Desktop.
Save TheAlphamerc/642e63da2ff1aefbcc8762a364410547 to your computer and use it in GitHub Desktop.
Create android and ios build using flutter cli command
flutter build apk
cp build/app/outputs/apk/release/app-release.apk buildOutput/
flutter build ios
cd ios
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
cd ..
cp ios/build/Runner.ipa/Runner.ipa buildOutput/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment