如何在没有Xcode 10错误的情况下将pod FirebaseUI / Phone添加到app&pod FirebaseUI / Storage到iMessage扩展?

问题描述 投票:0回答:1

在Xcode 10.1(10B61)中创建一个空白的新项目时,添加空白的“iMessage”扩展目标,并使用firebase添加以下pod文件:

# 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'

我该如何解决这个问题呢? (我正在研究的项目更复杂,但我将错误缩小到上面的项目)

xcode cocoapods firebaseui imessage-extension
1个回答
0
投票

这是https://github.com/CocoaPods/CocoaPods/issues/8206,其根本原因是https://openradar.appspot.com/radar?id=5038526135533568

解决方法是use the old Xcode build system或确保所有目标具有相同的CocoaPod子规范子集。在这种情况下,我相信可以通过向两个目标添加pod GoogleUtilities/UserDefaults来实现。

© www.soinside.com 2019 - 2024. All rights reserved.