=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release === Swift 3 模式已被弃用,将在以后的版本中移除 Xcode。请使用“Convert > To Current”将“Runner”迁移到 Swift 4.2 Swift 语法...”在编辑菜单中。 Swift 3 模式已被弃用,将在以后的版本中移除 Xcode。请使用“Convert > To Current”将“Runner”迁移到 Swift 4.2 Swift 语法...”在编辑菜单中。 === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION 发布 === --path/Runner/GeneratePluginRegistrant.m: 6:9: fatal error :找不到“connectivity/ConnectivityPlugin.h”文件 #进口 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 生成 1 个错误。
flutter 医生:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.3.11-pre.10, on Mac OS X 10.13.6 17G65, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] Connected device (1 available)
• No issues found!
xcode 版本:10
我正在修复旧项目的错误
最佳答案
1-在 Xcode 中>>打开“产品”菜单>>然后选择“清理”
2-当您在 iOS 文件夹中时,打开终端并运行 pod install
引用:https://github.com/flutter/flutter/issues/21989#issuecomment-509193686
关于ios - Flutter 在构建 ios 时显示错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55220734/