【问题标题】:Multiple Commands Produce gRPCCertificates.bundle error on Archive (iOS Xcode 11.1, Firebase SDK)多个命令在存档上产生 gRPCCertificates.bundle 错误(iOS Xcode 11.1,Firebase SDK)
【发布时间】: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


    【解决方案1】:

    可以在产品中找到重复的 gRPC 证书包。

    要删除重复的捆绑包,请选择 Pods,然后从目标中删除其中一个证书(例如 gRPC-C++-gRPCCertificates):

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-15
      • 2019-12-17
      • 2022-08-02
      • 2021-01-10
      • 2018-12-06
      • 1970-01-01
      相关资源
      最近更新 更多