Несколько команд выдают ошибку gRPCCertificates.bundle в архиве (iOS Xcode 11.1, Firebase SDK) - PullRequest
1 голос
/ 17 октября 2019

При обновлении до последних Cocoapods я обновил модуль googleapis и обнаружил следующую ошибку при архивации сборки в Xcode 11.1:

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

1) Target 'gRPC-gRPCCertificates

2) Target 'gRPC-C ++ - gRPCCertificates

Как удалить целевые сертификаты Build 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

В более старом потоке упоминается обновление до последней версии модуля (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

1 Ответ

0 голосов
/ 18 октября 2019

Дубликат пакета сертификатов gRPC можно найти в Продуктах.

screenshot of the duplicate bundle in Products

Чтобы удалить дублирующийся пакет, выберите «Модули» и в «Задаче» просто удалите один из сертификатов (например, gRPC-C ++ - gRPCCertificates):

enter image description here

...