![](/img/trans.png)
[英]Xcode 10 iOS firebase firestore SDK — multiple command produce gRPCCertificates.bundle error in Firebase
[英]Multiple Commands Produce gRPCCertificates.bundle error on Archive (iOS Xcode 11.1, Firebase SDK)
在更新到最新的 Cocoapods 時,我更新了 googleapis pod,並在 Xcode 11.1 中歸檔構建時遇到以下錯誤:
Multiple commands produce '...iphoneos/gRPCCertificates.bundle'
1)目標'gRPC-gRPCCertificates
2)目標'gRPC-C++-gRPCCertificates
如何刪除構建目標 gRPC-C++ 證書? 查看構建設置,似乎在這里找不到任何東西。
這是我的 Podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '13.0'
target 'Kintsugi Mindful Wellness' do
use_frameworks!
# Pods for Kintsugi Mindful Wellness
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Firebase/Crash'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
pod 'Firebase/Performance'
pod 'Firebase/Functions'
pod 'Firebase/Messaging'
pod 'googleapis', :path=> "."
pod 'GoogleSignIn'
...
target 'Kintsugi Mindful WellnessTests' do
inherit! :search_paths
end
target 'Kintsugi Mindful WellnessUITests' do
inherit! :search_paths
end
end
較舊的線程提到更新到最新的 pod ( https://github.com/firebase/firebase-ios-sdk/issues/2102 ) 但我已經這樣做了並且一直遇到這個問題(每次操作系統更新都會發生但總是忘記在哪里更改此配置)。
當我使用舊版構建系統時,我會收到如下更詳細的錯誤:
Lexical or Preprocessor Issue
Include of non-modular header inside framework module 'GRPCClient': '.../Build/Intermediates.noindex/ArchiveIntermediates/.../gRPC-umbrella.h
While building module 'ProtoRPC' imported from /...google/cloud/speech/v1/CloudSpeech.pbrpc.h:6
While building module 'GRPCClient' imported from /.../Intermediates.noindex/ArchiveIntermediates/.../BuildProducts...
In file included from <module-includes>:1:
Parse issue
Could not build module 'GRPCClient'
ProtoRPC.h
While building module 'ProtoRPC' imported from /.../CloudSpeech.pbrpc.h:6:
In file included from <module-includes>:1:
In file included from /.../gRPC-ProtoRPC/gRPC-ProtoRPC-umbrella.h:14:
Could not build module 'ProtoRPC'
CloudSpeech.pbrpc.h
In file included from /.../v1/CloudSpeech.pbrpc.m:2
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.