我想在Siri Intent中使用Firebase。我试图运行它并且它可以运行,但是当我尝试存档该应用程序时,它无法存档。
我在macOS Catalina 10.15.3和CocoaPods 1.8.4上使用Xcode 11.2.1。
错误是:
1)目标'GTMSessionFetcher-Core'具有创建目录命令,输出为'/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildFilesTM/Phoneed/Installed。框架'
2)目标'GTMSessionFetcher.default-Core'具有创建目录命令,输出为'/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildedss/Phone GTMSessionFetcher.framework'
1)目标'GoogleUtilities-00567490'具有创建目录命令,输出为'/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildsstils/phones/Uninstalled。框架'
2)目标“GoogleUtilities-ac14cd06”已创建目录命令,输出为“/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildFilestil/Phone框架的
Podfile:
project 'Sendy.xcodeproj'
# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
abstract_target 'SendyPods' do
use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Firestore'
pod 'FirebaseFirestoreSwift'
target 'Sendy' do
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
pod 'Firebase/Performance'
pod 'FirebaseMessaging'
pod 'GoogleSignIn'
end
target 'SendyIntents'
target 'SendyIntentsUI'
end
最佳答案
我最终将构建系统更改为Xcode 10之前使用的旧版构建系统。
您可以在文件->工作区设置->构建系统上切换到旧版构建系统。
关于ios - 使用CocoaPods在多个目标中引用Firebase时,构建运行但存档失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/60354439/