在pod安装Firebase Analytics pod Xcode后无法生成进程(参数列表太长)

问题描述 投票:0回答:1

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

据我了解,此错误与标题搜索路径参数过长有关。当我将工作空间设置为使用旧版构建系统时,项目构建就可以了。但是,我只想使用新的构建系统。

运行构建过程的外壳程序脚本“ 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)

Pod文件:

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
ios swift xcode cocoapods firebase-analytics
1个回答
0
投票

尝试在。podfile中使用此功能禁用cocoapods统计信息

ENV['COCOAPODS_DISABLE_STATS'] = 'true'

有关统计信息的更多信息,请访问repo

© www.soinside.com 2019 - 2024. All rights reserved.