I'm writing a small CI tool in Swift for building our Xcode projects so I need to invoke
xcodebuild from Swift code. I use the
Process class to invoke shell commands, but when invoking
xcodebuild like that, the build times are extremely slow compared to just running the same command from the command line.
I'm taking about the difference of 10 mins vs 60 mins. I can also see that my CPU is not utilised very much.
Does anybody know what is going on here?