【发布时间】:2020-04-21 08:11:39
【问题描述】:
我正在尝试使用 Cocoapods 将 Firebase Analytics pod 安装到我的项目中。成功运行 pod install 然后构建我的项目后,我收到构建错误 unable to spawn process (Argument list too long)。
据我了解,此错误与标头搜索路径参数太长有关。当我将工作区设置为使用旧版构建系统时,项目构建得很好。但是,我只想使用新的构建系统。
运行构建过程的 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)
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