- Put
build.sh
in./your-flutter-project-directory/build.sh
- Put
ExportOptions.plist
in./your-flutter-project-directory/ios/ExportOptions.plist
- Run
./build.sh
-
-
Save nivla360/62a516f6720410281c3a8ca4e6a65a5b to your computer and use it in GitHub Desktop.
Create a Flutter .apk and .ipa file to upload it to Firebase App Distribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flutter build apk | |
flutter build ios | |
rm -rf build/export | |
mkdir -p build/export | |
cp build/app/outputs/apk/release/app-release.apk build/export | |
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 -allowProvisioningUpdates | |
cd .. | |
cp ios/build/Runner.ipa/Runner.ipa build/export | |
open build/export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>ad-hoc</string> | |
<key>uploadBitcode</key> | |
<false/> | |
<key>uploadSymbols</key> | |
<true/> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment