Error- XCodebuild - zsh: argument list too long: Command

I'm using xcodebuild to build and test my project. This is the response i'm getting


2020-04-19 11:01:10.974 xcodebuild[1960:35299] [MT] IDETestOperationsObserverDebug: (9FB2433E-6BC4-4AEE-836E-A1FB9974BE86) Finished requesting crash reports. Continuing with testing.
2020-04-19 11:01:15.837 xcodebuild[1960:35299] [MT] IDETestOperationsObserverDebug: 7.691 elapsed -- Testing started completed.
2020-04-19 11:01:15.837 xcodebuild[1960:35299] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2020-04-19 11:01:15.837 xcodebuild[1960:35299] [MT] IDETestOperationsObserverDebug: 7.691 sec, +7.691 sec -- end
zsh: argument list too long: Command


This is the command i'm using


`xcodebuild -project contacts.xcodeproj/ -scheme Contacts -derivedDataPath Build/ -enableCodeCoverage YES clean build test -destination 'platform=iOS Simulator,name=iPhone 11,OS=13.4.1'` --verbose


I'm not getting any meaningful error even with verbose so it's really hard for me to debug into the issue.
I'm using XCode 11.4.1 and running on Mac OS Catalina 10.15.3.
Any help would be appricated! Thanks in advance 🙂

I think the usage of backticks in that command line is causing problems in the shell (zsh). You probably want to remove those backticks and just pass the -verbose flag directly to xcodebuild.
Error- XCodebuild - zsh: argument list too long: Command
 
 
Q