词法或预处理器问题Xcode 15:Flutter/Flutter. h文件未找到

ipakzgxi  于 2023-10-22  发布在  Flutter
关注(0)|答案(1)|浏览(267)

我将我的flutter应用程序更新到Xcode 15,然后在应用flutter运行命令后出现以下错误。
无法为设备生成预编译的应用程序。
Swift编译器错误(Xcode):'Flutter/Flutter.h'文件未找到
/Users/pedrocovarrubias/.pub-cache/hosted/pub.dev/vibration-1.8.2/ios/Classes/VibrationPlugin.h:0:8
Swift编译器错误(Xcode):无法构建CRT-C模块“振动”
到目前为止,我尝试了以下方法:

  1. Backup Runner文件夹
    1.删除ios文件夹
    1.进入终端并执行flutter create。在Flutter项目文件夹中
    1.将您的Runner文件夹粘贴回ios文件夹
  2. pod在ios文件夹中分解
  3. pod安装也在ios文件夹中
    1.在flutter项目文件夹中清理flutter
    1.扑式酒吧
    1.Flutter运行
    我也有:
  • 在Xcode中重新插入GoogleService-Info.plist文件

我尝试这些问题的答案所表明的一切:
Error (Xcode): 'Flutter/Flutter.h' file not found
错误:'Flutter/Flutter.h'文件未找到flutter运行在iOS上
其他信息:
我在ios文件夹中安装pod后得到了这个:
[!] CocoaPods没有设置你的项目的基本配置,因为你的项目已经有一个自定义配置集。为了让CocoaPods集成工作,请将目标Runner的基本配置设置为Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig,或者将Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig包含在构建配置中(Flutter/Release.xcconfig)。
[!] Runner [Debug]目标覆盖Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the $(inherited)标志中定义的ENABLE_BITCODE构建设置,或-从目标中删除构建设置。 [!]Runner [Release]目标覆盖Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)标志中定义的ENABLE_BITCODE构建设置,或-从目标中删除构建设置。
[!] Runner [Profile]目标覆盖Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig'. This can lead to problems with the CocoaPods installation - Use the $(inherited)标志中定义的ENABLE_BITCODE`生成设置,或-从目标中删除生成设置。
请帮

ie3xauqp

ie3xauqp1#

看起来这个错误是由于你的XCode更新。
请尝试以下解决方案:https://stackoverflow.com/a/77275218/6890699

相关问题