gpt4 book ai didi

ios - Flutter:Runner.app/Info.plist 不存在。 Flutter "Thin Binary"构建阶段必须在 "Copy Bundle Resources"之后运行

转载 作者:行者123 更新时间:2023-12-03 11:15:57 25 4
gpt4 key购买 nike

将 flutter 升级到 flutter 1.22.4 后。我在构建 Xcode 项目时遇到以下错误。

Runner.app/Info.plist does not exist. TheFlutter "Thin Binary" build phase must run after "Copy BundleResources".


已经尝试了以下选项:
  • flutter 干净并运行。
  • 删除派生数据,清理项目并重建。

  • rm -Rf ios/Pods
  • rm ios/Podfile
  • rm -Rf ios/.symlinks
  • rm -Rf ios/Flutter/Flutter.podspec
  • rm -Rf ios/Flutter/Flutter.framework
  • flutter 跑


  • 在尝试了上述所有选项后,仍然出现相同的错误。
    flutter 医生:
    [✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B50 darwin-x64, locale en-US)
    • Flutter version 1.22.4 at /Users/dhavalkansara/flutter 1.22.4
    • Framework revision 1aafb3a8b9 (6 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhavalkansara/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • 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.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.9.1

    [!] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

    [✓] IntelliJ IDEA Community Edition (version 2020.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin installed
    • Dart plugin version 202.8070

    [✓] Connected device (1 available)
    • iPhone 12 Pro Max (mobile) • 9D65DC5D-5DE8-485A-886F-FF26C0466391 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)

    ! Doctor found issues in 1 category.
  • 项目文件结构:

  • enter image description here
  • build设置中的 Info.plist 位置:

  • enter image description here
    还提出了 issue在 Flutter Github 上也是如此。

    最佳答案

    在 Xcode 菜单中,选择“产品”>“清理构建文件夹”。
    再次运行项目,它解决了问题。

    关于ios - Flutter:Runner.app/Info.plist 不存在。 Flutter "Thin Binary"构建阶段必须在 "Copy Bundle Resources"之后运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65434877/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com