【发布时间】:2020-02-13 17:49:04
【问题描述】:
在更新到最新的 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
【问题讨论】:
标签: ios swift xcode google-cloud-firestore grpc