如何在没有 Xcode 10 错误的情况下将 pod FirebaseUI/Phone 添加到应用程序和 pod FirebaseUI/Storage 到 iMessage 扩展?
Posted
技术标签:
【中文标题】如何在没有 Xcode 10 错误的情况下将 pod FirebaseUI/Phone 添加到应用程序和 pod FirebaseUI/Storage 到 iMessage 扩展?【英文标题】:How to add pod FirebaseUI/Phone to app & pod FirebaseUI/Storage to iMessage extension without Xcode 10 error? 【发布时间】:2019-03-16 06:43:48 【问题描述】:在 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'
我应该如何着手解决问题? (我正在做的项目比较复杂,但是我把bug缩小到了上面的项目)
【问题讨论】:
【参考方案1】:这是https://github.com/CocoaPods/CocoaPods/issues/8206,其根本原因是https://openradar.appspot.com/radar?id=5038526135533568
解决方法是use the old Xcode build system 或确保所有目标都具有相同的 CocoaPod 子规范子集。在这种情况下,我相信可以通过将pod GoogleUtilities/UserDefaults
添加到两个目标来实现。
【讨论】:
以上是关于如何在没有 Xcode 10 错误的情况下将 pod FirebaseUI/Phone 添加到应用程序和 pod FirebaseUI/Storage 到 iMessage 扩展?的主要内容,如果未能解决你的问题,请参考以下文章
ios:如何在没有连接设备的情况下将新的 UDID 添加到配置文件?
有没有办法在没有开发人员帐户或通过 Xcode 的情况下将应用程序部署到 iOS 设备?
如何在没有此错误的情况下将此 SQL 转储导入 PhpMyAdmin?
如何在没有冲突的情况下将 Mocha 和 Jest 与 TypeScript 一起使用?