【问题标题】:Your Xcode project requires migration您的 Xcode 项目需要迁移
【发布时间】:2020-08-23 15:33:20
【问题描述】:

Xcode 更新到 11.4 后,我的项目 ios 构建失败。 手册中的步骤(https://flutter.dev/docs/development/ios-project-migration)已经由颤振自动完成(?) - 那里写的一切都已经完成。

MacBook-Pro-ddd:my_awesome_project dm$ flutter clean
Cleaning Xcode workspace...                                         2,9s
Deleting build...                                                    1ms
Deleting .dart_tool...                                               2ms
Deleting Generated.xcconfig...                                       0ms
Deleting flutter_export_environment.sh...                            0ms
Deleting App.framework...                                            3ms
MacBook-Pro-ddd:my_awesome_project dm$ flutter build ios
Building ru.ddd.awesomeProject for device (ios-release)...
Your Xcode project requires migration. See https://flutter.dev/docs/development/ios-project-migration for details.
MacBook-Pro-ddd:my_awesome_project dm$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.4 19E287, locale ru-RU)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
[✓] Android Studio (version 3.6)
[!] IntelliJ IDEA Ultimate Edition (version 2020.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.44.2)
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.
MacBook-Pro-ddd:my_awesome_project dm$ 

【问题讨论】:

  • 确保您已从 pod 文件中删除指南建议的行。还要检查文件夹 Frameworks 下的 Xcode 并删除任何 App.Framework

标签: xcode flutter


【解决方案1】:

按照官方指南,Like @iluvatar_GR 建议删除App.Framework,此外还要从Frameworks 目录中删除Flutter.framework。

运行flutter clean 并尝试运行。

如果有除project requires migration 之外的任何其他错误,您可能需要运行rm -rf ios/Pods 并重试。

【讨论】:

    猜你喜欢
    • 2012-03-02
    • 1970-01-01
    • 1970-01-01
    • 2023-03-06
    • 1970-01-01
    • 1970-01-01
    • 2010-10-04
    • 2020-12-04
    • 2020-10-19
    相关资源
    最近更新 更多