Flutter稳定版1.17.1和Xcode 11.5问题

时间:2020-05-21 09:35:13

标签: xcode flutter

升级到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.

2 个答案:

答案 0 :(得分:0)

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

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

构建并运行=>成功

答案 1 :(得分:0)

Remove These

是的,此外,我必须删除以上内容。

谢谢