xcode - 如何在没有 Xcode 10 错误的情况下将 pod FirebaseUI/Phone 添加到应用程序和 pod FirebaseUI/Storage 到 iMessage 扩展?
问题描述
在 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'
我应该如何着手解决问题?(我正在做的项目更复杂,但我将错误范围缩小到上述项目)
解决方案
这是https://github.com/CocoaPods/CocoaPods/issues/8206,其根本原因是https://openradar.appspot.com/radar?id=5038526135533568
解决方法是使用旧的 Xcode 构建系统或确保所有目标都具有相同的 CocoaPod 子规范子集。在这种情况下,我相信这可以通过添加pod GoogleUtilities/UserDefaults
两个目标来实现。
推荐阅读
- xcode - XCTest for a Mac command line application
- python - 如何通过在 Windows 上使用系统调用从 python 中正确获取 R sessionInfo()?
- angular - Angular mat-checkbox选中不等于表单组
- python - pynput按键函数调用事件函数问题
- sql - 通过更新旧表中的重复行来创建新的视图 psql 表
- spartacus-storefront - 更改产品列表页面中的默认排序选项
- android - 任何人都可以解释为什么这个 android 布局不工作并且在活动启动后立即使活动崩溃
- c++ - 与矩阵的橄榄球比赛
- r - R中指数衰减模型的自启动函数
- html - 如何使用 XSLT 在具有特定类的 HTML 表格周围插入新标签?