Как добавить модуль FirebaseUI / Phone в приложение и модуль FirebaseUI / Storage в расширение iMessage без ошибки Xcode 10? - PullRequest
0 голосов
/ 16 марта 2019

При создании пустого нового проекта в Xcode 10.1 (10B61), добавьте пустую цель расширения "iMessage" и добавьте следующий файл pod, используя firebase:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'iMessage' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for iMessage
pod 'FirebaseUI/Storage'


end

target 'MyProject34' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for MyProject34
pod 'FirebaseUI/Phone'

end

При попытке "я получаю следующую ошибку"Продукт / Архив ":

Showing Recent Messages
:-1: Multiple commands produce '/Users/huty/Library/Developer/Xcode/DerivedData/MyProject34-axmyqgtwgzajkqcujpfchvgqnoiz/Build/Intermediates.noindex/ArchiveIntermediates/MyProject34/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework':
1) Target 'GoogleUtilities-Environment-Logger-UserDefaults' has create directory command with output '/Users/huty/Library/Developer/Xcode/DerivedData/MyProject34-axmyqgtwgzajkqcujpfchvgqnoiz/Build/Intermediates.noindex/ArchiveIntermediates/MyProject34/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'
2) Target 'GoogleUtilities-Environment-Logger' has create directory command with output '/Users/huty/Library/Developer/Xcode/DerivedData/MyProject34-axmyqgtwgzajkqcujpfchvgqnoiz/Build/Intermediates.noindex/ArchiveIntermediates/MyProject34/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'

И

Showing Recent Messages
:-1: Multiple commands produce '/Users/huty/Library/Developer/Xcode/DerivedData/MyProject34-axmyqgtwgzajkqcujpfchvgqnoiz/Build/Intermediates.noindex/ArchiveIntermediates/MyProject34/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseUI.framework':
1) Target 'FirebaseUI-Storage' has create directory command with output '/Users/huty/Library/Developer/Xcode/DerivedData/MyProject34-axmyqgtwgzajkqcujpfchvgqnoiz/Build/Intermediates.noindex/ArchiveIntermediates/MyProject34/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseUI.framework'
2) Target 'FirebaseUI-Auth-Phone' has create directory command with output '/Users/huty/Library/Developer/Xcode/DerivedData/MyProject34-axmyqgtwgzajkqcujpfchvgqnoiz/Build/Intermediates.noindex/ArchiveIntermediates/MyProject34/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseUI.framework'

Как мне поступить, чтобы решить проблему?(проект, над которым я работаю, более сложный, но я сузил ошибку до указанного выше проекта)

1 Ответ

0 голосов
/ 16 марта 2019

Это https://github.com/CocoaPods/CocoaPods/issues/8206, чья основная причина https://openradar.appspot.com/radar?id=5038526135533568

Обходные пути должны использовать старую систему сборки Xcode или гарантировать, что все цели имеют одинаковые подмножества подкапа CocoaPod. Я полагаю, что в этом случае это можно сделать, добавив pod GoogleUtilities/UserDefaults к обеим целям.

...