簡體   English   中英

多個命令在存檔上產生 gRPCCertificates.bundle 錯誤(iOS Xcode 11.1,Firebase SDK)

[英]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

可以在產品中找到重復的 gRPC 證書包。

產品中重復捆綁包的屏幕截圖

要刪除重復的包 select Pod 和目標,只需刪除其中一個證書(例如 gRPC-C++-gRPCCertificates):

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM