I am android developer learning Flutter, and I really have some trouble trying to create debug .ipa file, for testing purposes.
So, I managed to create Runner.app fi
I use the next bash-script
flutter build ios --debug
cd ios
xcodebuild -workspace Runner.xcworkspace -scheme Runner archive -archivePath Runner.xcarchive
xcodebuild -exportArchive -archivePath Runner.xcarchive -exportOptionsPlist ../scripts/exportOptions.plist -exportPath ../scripts -allowProvisioningUpdates
rm -fr Runner.xcarchive
ipa will be created at '../scripts'. You may have own path.
-allowProvisioningUpdates is using if you want xcodebuild updates certificates automaticaly.
exportOptions.plist - it's a file with distribution settings. I use next
compileBitcode
method
enterprise
signingStyle
automatic
stripSwiftSymbols
teamID
YOUR TEAM ID