ios - 无法使用 Flutter 1.22.3 编译 Flutter 应用程序

标签 ios flutter flutter-android

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

Runner.app/Info.plist does not exist. The Flutter "Thin Binary" build phase must run after "Copy Bundle Resources".
flutter 医生 -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 目录中的目录)
然后我重建并重新开始行动:)

关于ios - 无法使用 Flutter 1.22.3 编译 Flutter 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64636941/

相关文章:

ios - Swift 无法通过委托(delegate)调用协议(protocol)方法

Flutter中对象的JSON序列化和反序列化

flutter - 如何在flutter中检测iOS或Android设备底部是否有HomeBar

ios - 如何将我的应用程序限制为 iphone 5s 及更高版本?

ios - 使用 Swift 3 fatal error 使用 UITextField Popup Alertview 获取文本

ios - 在不影响 View 内容的情况下更改导航栏项目内容

android - 文本小部件保持居中,而没有中心小部件

firebase - 方法 'UserUpdateInfo' 没有为类型 'AuthService' 定义

flutter - 如何在 Flutter 中构建 apk 创建旧版本应用程序

flutter - 是否可以在 Flutter Web 和 Flutter App 中实现 Agora Video Call?