Faced with similar problem?
🚨
error: unable to spawn process (Argument list too long)
Until Apple fixes problem you can use flatter
as workaround solution.
Flatter is a gem which simply move all swift files in Xcode project to root group. That's all :)
Add this line to your application's Gemfile:
gem 'xcflatter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install xcflatter
Simple
$ flatter "/path/to/your/project.xcodeproj"
Specific group
$ flatter "/path/to/your/project.xcodeproj" -g "SpecificGroup"
Advanced
$ flatter "/path/to/your/project.xcodeproj" -g "SpecificGroup" -e ".xib"
Bug reports and pull requests are welcome on GitHub at https://github.com/gregoryvit/flatter.
The gem is available as open source under the terms of the MIT License.