ios - 使用 CocoaPods 在多个目标中引用 Firebase 时,构建运行但存档失败

标签 ios swift xcode firebase cocoapods

我想在 Siri Intent 中使用 Firebase。我尝试运行它并且它可以工作,但是当我尝试归档应用程序时它无法归档。

我在 macOS Catalina 10.15.3 和 CocoaPods 1.8.4 上使用 Xcode 11.2.1。

错误是:

  • 多个命令产生'/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GTMSessionFetcher.framework':
    1)目标“GTMSessionFetcher-Core”具有创建目录命令,输出为“/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GTMSessionFetcher。框架'
    2)目标“GTMSessionFetcher.default-Core”具有创建目录命令,输出为“/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GTMSessionFetcher.framework'
  • 多个命令产生'/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework':
    1)目标“GoogleUtilities-00567490”具有创建目录命令,输出为“/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities。框架'
    2) 目标“GoogleUtilities-ac14cd06”具有创建目录命令,输出为“/Users/matan/Library/Developer/Xcode/DerivedData/Sendy-bqdzdmefsanhbvezkvawqizercwt/Build/Intermediates.noindex/ArchiveIntermediates/Sendy/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.框架'

  • archive errors

    播客文件:
    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 之前使用的 Legacy Build System。
    您可以在 File -> Workspace Settings -> Build System 切换到 Legacy Build System。

    关于ios - 使用 CocoaPods 在多个目标中引用 Firebase 时,构建运行但存档失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60354439/

    相关文章:

    ios - 超快消失的 child

    ios - Objective-C : How to make a cache without keys

    iphone - iPhone 中 H 264 流的 SPS 值

    ios - firebase 和 swift - 此类不符合 key 的键值编码 -----

    ios - 可以产生不同口音的自然人声的软件吗?

    ios - 如何在设定的时间段内运行一个 Action ?

    ios - 如何根据URL区分不同类型的Web Services?

    iphone - 有没有简单的方法来处理 UIAlertView 结果而无需委托(delegate)?

    ios - 获取错误 [UIImage 范围] : unrecognized selector sent to instance

    android - 如何在我的 flutter 应用程序中显示图像?我在做什么不工作