首页 > 解决方案 > pod install Firebase Analytics pod Xcode 后无法生成进程(参数列表太长)

问题描述

我正在尝试使用 Cocoapods 将 Firebase Analytics pod 安装到我的项目中。成功运行 pod install 然后构建我的项目后,我得到构建错误无法生成进程(参数列表太长)

据我了解,此错误与标头搜索路径参数太长有关。当我将工作区设置为使用旧版构建系统时,项目构建得很好。但是,我只想使用新的构建系统。

运行构建过程的 shell 脚本“Check Pods Manifest.lock”步骤时似乎失败了。

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Intermediates.noindex/xxx.build/Debug\ (Staging)-iphonesimulator/OV.build/Script-05BB3CCD2FBD4842F78B0F4F.sh (in target 'xxx' from project 'xxx')
    cd /Users/xxx/Documents/Projects/ov-ios
    /bin/sh -c /Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Intermediates.noindex/xxx.build/Debug\\\ \\\(Staging\\\)-iphonesimulator/xxx.build/Script-05BB3CCD2FBD4842F78B0F4F.sh

error: unable to spawn process (Argument list too long) (in target 'xxx' from project 'xxx')

应该注意的是,我的项目有多个构建配置,就像这样。不确定这是否是导致参数列表过长的原因。

Debug (Local)
Debug (Staging)
Debug (Production)
Release (Local)
Release (Staging)
Release (Production)

豆荚文件:

platform :ios, '13.0'
use_frameworks!

def my_pods
    pod "Apollo", '0.16.0'
    pod 'AlamofireImage', '3.5.2'
    pod 'KeychainAccess', '4.1.0'
    pod 'SwiftUIRefresh', '0.0.1'
    pod 'Firebase/Analytics', '6.14.0'
end

target 'MY Project' do
  my_pods
end

标签: iosswiftxcodecocoapodsfirebase-analytics

解决方案


打开“文件 -> 工作区设置”并将构建系统设置为旧版构建系统。这解决了我的 Firebase CocoaPods 安装问题。


推荐阅读