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')
It should be noted that I have multiple build configurations for my project like so. Unsure if this could be a cause of the argument list being too long.
Debug (Local)
Debug (Staging)
Debug (Production)
Release (Local)
Release (Staging)
Release (Production)
Pod File:
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