3编译Flutter应用程序

3编译Flutter应用程序

本文介绍了无法使用Flutter 1.22.3编译Flutter应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Flutter版本升级之前,我的应用程序已成功编译.我收到以下错误:

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 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

推荐答案

我通过运行 flutter clean 修复了该问题(确保如果将Runner重命名为Runner.app,则它也不再是ios目录中的目录)

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 :)

这篇关于无法使用Flutter 1.22.3编译Flutter应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 11:18