admin管理员组文章数量:1396299
这里写自定义目录标题
- Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modules
- 1.报错信息
- 2.解决方案
Use of ‘@import’ when C++ modules are disabled, consider using -fmodules and -fcxx-modules
1.报错信息
最近用在 iOS Sumilator 上运行 Flutter 项目时, 遇到以下报错:
Parse Issue (Xcode): Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modules
/Users/story5/Story5/01Project/Gitee/zqne/ios/Runner/GeneratedPluginRegistrant.m:77:0
Parse Issue (Xcode): Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modules
/Users/story5/Story5/01Project/Gitee/zqne/ios/Runner/GeneratedPluginRegistrant.m:89:0
Semantic Issue (Xcode): Use of undeclared identifier 'PathProviderPlugin'
/Users/story5/Story5/01Project/Gitee/zqne/ios/Runner/GeneratedPluginRegistrant.m:136:3
Semantic Issue (Xcode): Use of undeclared identifier 'SharedPreferencesPlugin'
/Users/story5/Story5/01Project/Gitee/zqne/ios/Runner/GeneratedPluginRegistrant.m:138:3
Could not build the application for the simulator.
Error launching application on iPhone 13.
2.解决方案
- 在 Xcode 中打开 iOS 项目
- 点击 Runner -> TARGETS -> Runner -> Build Settings
- 在搜索框中搜索
GCC_INPUT_FILETYPE
- 将 Compile Sources As 改为 According to File Type
本文标签: Modulesimportdisabledfcxxfmodules
版权声明:本文标题:Use of ‘@import‘ when C++ modules are disabled, consider using -fmodules and -fcxx-modules 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1738333622a2076504.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论