Hello i have an app that was working fine till yesterday i update flutter SDK . after the update is finished i tried to build for ios and it fails every time with this error :
i have tried the following : pod deintegrate pod install pod update flutter clean deleted pod folder did pod install again created new flutter project and copied the files to the new project and its just the same error
I had the same issue both on flutter channel stable
with version 1.17.1 and on flutter channel beta
with version 1.18.0-11.1.pre.
I copied the App.framework
from another project under ios/Flutter
directory and successfully built an iOS release version.
Update 19/May/2020
I opened a issue in flutter since every flutter clean
removes it so to continue to copy is not a solution. It can be followed here
This is not a working solution because App.framework
should contain the application compiled code so it should be different for every app. Explanations are available here ( Tip: Flutter.framework is the bundle for the Flutter engine, and App.framework is the compiled Dart code for this project.)
Update 19/May/2020 22:30 The problem is really solved with Flutter team support. The issue is that in the relevant "Target" under "Build phases" before "Compile sources" we need to have a "Run script" for shell which is running
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build
The solution for me was:
Inside: Xcode > Runner > Build Phases tab > Run Script section
a) When deploying to the emulator: disable 'Run script only when installing'
b) When deploying a real release: enable 'Run script only when installing' [this is only if you get an error]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With