gpt4 book ai didi

ios - CocoaPods:pod 安装给出 "Errno::E2BIG - Arg list too long"

转载 作者:行者123 更新时间:2023-11-29 05:09:38 33 4
gpt4 key购买 nike

我正在使用 flutter 进行开发,需要向 iOS 项目添加一些 Firebase SDK。我能够让 CocoaPods 生成 Podfile,如下所示,但在 pod install 时出现以下错误(我解决了第二个警告):

enter image description here

platform :ios, '9.0'

target 'Runner' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for Runner
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Functions'
pod 'Firebase/Messaging'

end

编辑:

包含 bash.exe 的文件夹不在 PATH 上,这是我的新问题:

Errno::E2BIG - Arg list too long - C:/Program Files/Git/usr/bin/bash.exe
C:/Ruby26-x64/lib/ruby/2.6.0/open3.rb:213:in `spawn'
C:/Ruby26-x64/lib/ruby/2.6.0/open3.rb:213:in `popen_run'
C:/Ruby26-x64/lib/ruby/2.6.0/open3.rb:101:in `popen3'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/executable.rb:175:in `popen3'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/executable.rb:67:in `execute_command'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/executable.rb:27:in `block in executable'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_preparer.rb:66:in `block (2 levels) in run_prepare_command'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_preparer.rb:60:in `chdir'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_preparer.rb:60:in `block in run_prepare_command'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_preparer.rb:59:in `run_prepare_command'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_preparer.rb:37:in `prepare!'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/downloader/cache.rb:202:in `copy_and_clean'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/downloader/cache.rb:159:in `block (2 levels) in uncached_pod'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/downloader/cache.rb:157:in `each'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/downloader/cache.rb:157:in `block in uncached_pod'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/downloader/cache.rb:181:in `in_tmpdir'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/downloader/cache.rb:153:in `uncached_pod'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/downloader/cache.rb:33:in `download_pod'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/downloader.rb:42:in `download'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_installer.rb:117:in `download_source'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_installer.rb:69:in `install!'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:557:in `install_source_of_pod'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:508:in `block (2 levels) in install_pod_sources'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:86:in `titled_section'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:507:in `block in install_pod_sources'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:490:in `each'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:490:in `install_pod_sources'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:248:in `block in download_dependencies'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:247:in `download_dependencies'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:157:in `install!'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:52:in `run'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
C:/Ruby26-x64/bin/pod:23:in `load'
C:/Ruby26-x64/bin/pod:23:in `<main>'

有什么想法吗?谢谢!

最佳答案

在终端中运行命令来解决问题。

echo "export LANG=en_us.utf-8" >> ~/.profile

这看起来正是错误告诉您要做的事情。

关于ios - CocoaPods:pod 安装给出 "Errno::E2BIG - Arg list too long",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59805176/

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