I am getting this error:
\"error: unable to spawn process (Argument list too long)
** ARCHIVE FAILED **
The following build co
Error - unable to spawn process (Argument list too long)
There are many reason for this error. Some of these are mentioned below:
Xcode swift complier takes the absolute paths of all source files while so compiling, the ARG_MX limit is reached and build fails.
This has been fixed in Xcode 11 wherein a flag is used to set unlimited number of swift files.
Solutions:
Switch to Xcode 11 and add USE_SWIFT_RESPONSE_FILE to YES in build settings - User Defined Section
If you cannot switch to Xcode 11 then take a new checkout of your project in Macintosh HD ▸ Users directory with folder name as minimal as possible.
Solution 2 worked for me like a charm!