gpt4 book ai didi

ios - 多个命令在存档上产生 gRPCCertificates.bundle 错误(iOS Xcode 11.1,Firebase SDK)

转载 作者:行者123 更新时间:2023-11-28 07:20:16 25 4
gpt4 key购买 nike

在更新到最新的 Cocoapods 时,我更新了 googleapis pod 并在 Xcode 11.1 中存档构建时遇到以下错误:

Multiple commands produce '...iphoneos/gRPCCertificates.bundle'

1) 目标'gRPC-gRPCCertificates

2) 目标'gRPC-C++-gRPCCertificates

如何删除构建目标 gRPC-C++ 证书?查看build设置,似乎在这里找不到任何东西。

这是我的 Pod 文件:

# 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 ),但我已经这样做了,并且一直遇到这个问题(每次操作系统更新都会发生,但总是忘记在哪里更改此配置)。

当我使用 Legacy Build System 时,我会收到更详细的错误,如下所示:

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 证书包。

screenshot of the duplicate bundle in Products

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

enter image description here

关于ios - 多个命令在存档上产生 gRPCCertificates.bundle 错误(iOS Xcode 11.1,Firebase SDK),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58421909/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com