Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to spawn process (Argument list too long) error #4577

Closed
xanderbuck opened this issue Jan 2, 2020 · 4 comments
Closed

unable to spawn process (Argument list too long) error #4577

xanderbuck opened this issue Jan 2, 2020 · 4 comments

Comments

@xanderbuck
Copy link

Describe your environment

  • Xcode version: 11.3
  • Firebase SDK version: 6.14.0
  • Firebase Component: Analytics

Stack

   CocoaPods : 1.8.4
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.1 (19B88)
       Xcode : 11.3 (11C29)
         Git : git version 2.21.0 (Apple Git-122.2)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-check       : 1.1.0
cocoapods-deintegrate : 1.0.4
cocoapods-keys        : 2.1.0
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

Podfile

platform :ios, '13.0'
use_frameworks!

def example_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 'Example' do
  example_pods
end

target 'ExampleTests' do
  example_pods
end

target 'ExampleUITests' do
  example_pods
end

plugin 'cocoapods-keys', {
  :project => "Example",
  :keys => [
   
  ]}

Describe the problem

Steps to reproduce:

I'm trying to install the Firebase Analytics pod into my project using Cocoapods. After successfully running pod install and then building my project I get the build error unable to spawn process (Argument list too long).

From my understanding this error has to do with the header search path arguments being too long. When I set my workspace to use the legacy build system the project builds just fine. I however, only want to use the new build system.

It seems to fail when running the shell script "Check Pods Manifest.lock" step of the build process.

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')
@google-oss-bot

This comment has been minimized.

@paulb777
Copy link
Member

paulb777 commented Jan 2, 2020

This doesn't seem to be a Firebase issue and based on discussion at CocoaPods/CocoaPods#8257, it seems that moving or restructuring the project might be the only current approach.

Does removing the cocoapods-keys plugin make a difference?

@paulb777
Copy link
Member

paulb777 commented Jan 2, 2020

Many ideas at https://stackoverflow.com/questions/53226087/error-unable-to-spawn-process-argument-list-too-long-in-xcode-build.

Going to close the issue here since the CocoaPods and stackoverflow communities are likely better places to sort this one out.

@paulb777 paulb777 closed this as completed Jan 2, 2020
@xanderbuck
Copy link
Author

@paulb777 removed Cocoapods-keys didn't make a difference. Already have gone through what's on stack overflow so that's why I came here. Thanks for your help!

@firebase firebase locked and limited conversation to collaborators Feb 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants