9
votes

My application was compiling successfully until the Flutter version upgrade. I get the following error:

Runner.app/Info.plist does not exist. The Flutter "Thin Binary" build phase must run after "Copy Bundle Resources".

Flutter doctor -v

[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.6 19G2021, locale fr-FR)
    • Flutter version 1.22.3 at /Users/xxx/development/flutter
    • Framework revision 8874f21e79 (3 days ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/xxx/Library/Android/sdk
    • Platform android-R, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.10.0.rc.1
7
I have same issue with 1.22.2TeeTracker

7 Answers

12
votes

I fixed it by running flutter clean (Make sure that If you renamed Runner to Runner.app, that this is also no longer a directory in the ios directory)

Then I rebuilt and it sprung back into action :)

9
votes

I was facing same issue, and fixed with following steps:

  1. Launch iOS application from Runner.Workspace
  2. Go to build phase --> Thin Binary
  3. Comment the shell script line.
  4. Run the app (it works, but app size grows to 161 MB)
  5. Now again uncomment same line in step 3. App builds and runs and app size shrinks to (97 MB)
1
votes

Try renaming project name from Runner to Runner.app

It will rename the target as well to Runner.app.app, but the project will compile and run.

1
votes

Solution


Go to Runner(target app) > Build Phases > Run Script and update the run script with the below one.

/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build

Also, verify that Runner(target app) > Build Phases > This Binary contains below scripts as suggested in XCode 11.4 Support by the flutter team.

/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin

For more information refer check question.

0
votes

We have the same issue a lot on our project. Unfortunately we were not yet able to fix it completely but we have a work around:

Go to the folder where the build files are stored

e.g. /Users/your.name/Projects/app_project/build/ios/iphonesimulator/YourApp.app)

Open the app with right click -> Show Package Content. And then just copy the old info.plist from an earlier build into this app package. The App should build again.

0
votes

I found the issue. To fix it:

  • Open XCode
  • Open the Build Phase panel
  • In the Run Script i remove the second line of the script (I keep only the following line: /bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build)
0
votes

I met the same problem. I have solved this problem to change the edition of flutter into "flutter_macos_1.17.2-stable". My English is bad.Forgive me