xcode 未找到文件

neekobn8  于 2022-12-14  发布在  其他
关注(0)|答案(1)|浏览(179)

我昨天从Mac上删除了我的项目,并从回购中再次克隆。之后,我在iOS模拟器中构建Flutter应用程序时遇到了问题。
我收到了fatal error: 'grpcpp/support/byte_buffer.h' file not found
所以我在谷歌和tried this solution上搜索,但它不工作:-(
我不知道我该怎么办了,我希望这是一个小问题。
请帮帮我,谢谢。

Launching lib/main.dart on iPhone 12 in debug mode...
lib/main.dart:1
Xcode build done.                                            8,8s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    In file included from /Applications/MAMP/htdocs/capido/ios/Pods/FirebaseFirestore/Firestore/core/src/nanopb/writer.cc:17:
    /Applications/MAMP/htdocs/capido/ios/Pods/FirebaseFirestore/Firestore/core/src/nanopb/writer.h:28:10: fatal error: 'grpcpp/support/byte_buffer.h' file not found
    #include "grpcpp/support/byte_buffer.h"
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 12.
Exited (sigterm)
nc1teljy

nc1teljy1#

找到了对我有效的解决方案,这可能是为什么在OSX中创建一个新的用户帐户对@BNetz有效的原因。
问题是CocoaPods缓存不知何故被破坏了,每次执行pod install时,都会从该缓存中提取pod。
清除该高速缓存的简单方法是删除位于$HOME/Library/Caches/CocoaPods的CocoaPods缓存文件夹。这样,您可以通过在项目位置执行pod install来强制CocoaPods下载正确版本的pod。

相关问题