Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios/Flutter/App.framework" failed: No such file or directory (2) done flutter

Tags:

flutter

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 : enter image description here

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

like image 658
Osama Avatar asked May 17 '20 23:05

Osama


2 Answers

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

like image 78
danysz Avatar answered Oct 07 '22 23:10

danysz


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]

enter image description here

like image 23
Juanma Menendez Avatar answered Oct 08 '22 01:10

Juanma Menendez