"fatal error: 'src/core/lib/surface/event_string.h' file not found" cloud_firestore飘飘?



创建新的颤振应用程序并集成云火库时,我似乎收到此错误。

容器文件存在问题...我尝试了不同的颤振分支(master,dev,beta)。

cloud_firestore:^0.9.13+1 包的文档与 firestore 官方控制台上的文档不同,似乎是关于 Podfile 的处理。

有时错误是针对登录 xcode 和project_id。即使重新开始,一旦我尝试集成firestore,应用程序就会中断,并带有这个丢失的"event_string.h"文件。

Running Xcode build...
Xcode build done.                                           69.9s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **

Xcode's output:
↳
=== BUILD TARGET gRPC-Core OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/joey/Code/dart/spry_up/ios/Pods/gRPC-Core/src/core/lib/surface/completion_queue.cc:41:10: fatal error: 'src/core/lib/surface/event_string.h' file not found
#include "src/core/lib/surface/event_string.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the precompiled application for the device.
Error launching application on iPhone.

我不确定去哪里寻求帮助。我已经重建了 3 次应用程序。

请尝试在 Podfile 中进行此编辑 需要添加或编辑的代码都标有"** ......

target 'Runner' do
** use_frameworks!  **

........

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
** config.build_settings['SWIFT_VERSION'] = '4.0' **
end
end
end

删除您的 Podfile.lock 并尝试

最新更新