【问题标题】:Flutter stable 1.17.1 and Xcode 11.5 issuesFlutter stable 1.17.1 和 Xcode 11.5 问题
【发布时间】:2020-09-07 21:43:01
【问题描述】:

升级到 Flutter 1.17.1 和 Xcode 11.5 后,我无法再为 iOS 构建。 尽管遵循https://flutter.dev/docs/development/ios-project-migration中的所有方向

有人遇到同样的问题吗?有什么解决办法吗?

flutter doctor
Waiting for another flutter command to release the startup lock...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-SG)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 3.6)
[!] Android Studio (version 2.3)
    ✗ Flutter plugin version 12.1 - the recommended minimum version is 16.0.0
[✓] VS Code (version 1.45.1)
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

这是我做的输出 扑跑

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Your Xcode project requires migration. See https://flutter.dev/docs/development/ios-project-migration for details.
Error launching application on iPhone 11 Pro Max.

【问题讨论】:

    标签: xcode flutter


    【解决方案1】:

    是的,另外,我必须删除上面的内容。

    谢谢

    【讨论】:

      【解决方案2】:

      来自 1.13=>1.17。它没有自动升级我的项目,所以我不得不在 Xcode 中工作一点。我通过执行迁移页面上列出的所有步骤解决了这个问题。然后执行:

      rm -rf ios/Flutter/App.framework
      rm -rf ios/Pod*
      flutter clean
      

      构建并运行 => 成功

      【讨论】:

        猜你喜欢
        • 2020-09-05
        • 2020-09-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-02-24
        • 2020-09-11
        相关资源
        最近更新 更多