Digging a little deeper, I managed to capture the following network requests when running xcodebuild:
Combined duration of these is 31 seconds, which very close to the overhead I see when I benchmark xcodebuild.
Given that xcodebuild works fine without network for my purposes (see example in previous post), I wonder why fetching all this data is even necessary 🤔
Post
Replies
Boosts
Views
Activity
I’ve noticed the same thing, "GatherProvisioningInputs" phase takes a good 20+ seconds of xcodebuild.
Interestingly enough, if I disconnect my mac from the network, this step takes no time at all.
Reading the docs, I assumed that xcodebuild doesn’t do any server communication unless -allowProvisioningUpdates flag is specified.
-allowProvisioningUpdates
Allow xcodebuild to communicate with the Apple Developer website.
For automatically signed targets, xcodebuild will create and update
profiles, app IDs, and certificates. For manually signed targets,
xcodebuild will download missing or updated provisioning profiles.
Requires a developer account to have been added in Xcode's Accounts
preference pane.
Is it an xcodebuild issue or am I missing something?
My invocation is nothing special
xcodebuild build -project {PROJ} -scheme {SCHEME} -derivedDataPath {DERIVED} -destination 'platform=macOS,arch=arm64'
Xcode 15.4, macOS 14.5