ios - 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
解决方案
打开“文件 -> 工作区设置”并将构建系统设置为旧版构建系统。这解决了我的 Firebase CocoaPods 安装问题。
推荐阅读
- .net - 从设备门户将 appxbundle 部署到 hololens 时出错
- php - Laravel/PHP 命名空间路径的简写
- django - 处理子进程文件输出
- wso2 - 无法从 wso2am-2.5.0 访问 wso2is-5.6.0 中的 XACML 策略出现错误
- php - 为什么 add_post_meta 会创建一个嵌套数组?
- keras - 标记器没有属性 oov_token
- asp.net-core - Asp.Net Core Razor 页面中的远程验证
- amazon-s3 - AWS Athena 查询另存为 s3
- python - Pandas Pivot 错误“异常:数据必须是一维的”
- linux - 如何在 Linux 上包含 QT 应用程序的依赖项