Swift 5.5+ error, argument list is too long

Does this workaround work for this project? Swift Compilation - Reaching ARG_MAX limit causing Xcode build failure - #15 by Angel