Я работаю с флаттером и мне нужно добавить несколько Firebase SDK в проект iOS. Мне удалось заставить CocoaPods сгенерировать Podfile, показанный ниже, но я получил следующую ошибку при установке модуля (я исправил второе предупреждение):
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>'
Есть идеи? Спасибо!