Flutter:Runner.app/Info.plist不存在.Flutter的"Thin Binary"构建阶段必须在“复制捆绑资源"之后运行 [英] Flutter: Runner.app/Info.plist does not exist. The Flutter "Thin Binary" build phase must run after "Copy Bundle Resources"

查看:47
本文介绍了Flutter:Runner.app/Info.plist不存在.Flutter的"Thin Binary"构建阶段必须在“复制捆绑资源"之后运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将颤振升级到颤振1.22.4之后.构建Xcode项目时出现以下错误.

After upgrading flutter to flutter 1.22.4. I am getting the below error while building the Xcode Project.

Runner.app/Info.plist不存在.这颤振"Thin Binary"构建阶段必须在复制捆绑包"之后运行资源".

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

已经尝试了以下选项:

  • 扑打干净并运行.
  • 删除了派生数据,清理项目并重建.
    • rm -Rf ios/Pods
    • rm ios/Podfile
    • rm -Rf ios/.symlinks
    • rm -Rf ios/Flutter/Flutter.podspec
    • rm -Rf ios/Flutter/Flutter.framework
    • 颤动

    尝试了上述所有选项之后,仍然出现相同的错误.

    After trying all the above options still getting the same error.

    扑扑医生:

    [✓] 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.
    

    • 项目文件结构:
      • 构建设置中的Info.plist位置:

      还提出了问题,在Flutter Github上也是如此.

      Also raised an issue for the same on Flutter Github.

      推荐答案

      解决方案


      转到 Runner(目标应用)>构建阶段>运行脚本,并使用下面的脚本更新运行脚本.

      Solution


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

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

      还要验证 Runner(目标应用)>构建阶段>精简二进制文件包含以下脚本,由flutter团队在 XCode 11.4支持中建议.

      Also, verify that Runner(target app) > Build Phases > Thin 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
      

      这篇关于Flutter:Runner.app/Info.plist不存在.Flutter的"Thin Binary"构建阶段必须在“复制捆绑资源"之后运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆