Swift Compilation - Reaching ARG_MAX limit causing Xcode build failure

Xcode 11 beta 3 added a flag to use an unlimited number of Swift files. You have to add USE_SWIFT_RESPONSE_FILE to YES in Build Settings - User Defined section. But this only works if you use the New Build System.
Tested on a dummy project with 2000 files inside an extra long path and it's working.

4 Likes