When I compile my Xcode project using the xcodebuild
command, I observe long incremental build durations. For example, compiling a new, empty project in Xcode only takes around one second. The same project takes 7 seconds to compile using the xcodebuild
command. I've noticed that xcodebuild
hangs at the "GatherProvisioningInputs" phase.
Steps to Reproduce:
- Create a new Xcode project (iOS app template)
- Build the project in Xcode with timing summary enabled
- Build the same project from the command line with the following command:
time xcodebuild -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest'
I would appreciate any insights or suggestions on how to improve the build times when using the xcodebuild
command. Thank you in advance for your help!