gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 05:12:15 25 4
gpt4 key购买 nike

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

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

运行构建过程的 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

最佳答案

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

关于ios - pod 安装 Firebase Analytics pod Xcode 后无法生成进程(参数列表太长),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59567116/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com