2025-02-25 00:43:00
lapcatsoftware.com
February 24 2025
Building StopTheMadness Pro in Xcode is usually very fast, because my project doesn’t use any Swift. It’s a combination of Objective-C, which compiles much more quickly than Swift, and JavaScript, which doesn’t need to be compiled. However, sometimes the builds were very slow for some strange reason. Checking the Xcode build transcripts, I found that the delay was in the “Gather provisioning inputs” build phase.

This one phase took 50.6 seconds when the entire build was 56.8 seconds!
I tested with my internet disabled, and the slow builds did not occur. Obviously, though, it’s impractical to disable my internet every time I want to build and run. After all, my project is a Safari extension! I do use Little Snitch, but I had previously allowed all connections from Xcode to apple.com
, because that’s required to upload builds to App Store Connect. When I scrutinized the individual Xcode connections with Little Snitch, I saw that developerservices2.apple.com
was responsible for the slow “Gathering provisioning inputs” build phase. When I denied those connections with Little Snitch, my builds were always fast. And successful. The build phase is mostly unnecessary.
I found a thread in the Apple Developer Forums that discusses the problem, mentioning the -allowProvisioningUpdates
option of the command-line xcodebuild
tool. From the man
page:
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.
Connecting to developerservices2.apple.com
, and to some other domains, is required in order to upload a build to App Store Connect. For most local builds, on the other hand, the “Gathering provisioning inputs” build phase is unnecessary and can slow down the build considerably. Thus, I’ve now denied Xcode connections to developerservices2.apple.com
by default in Little Snitch and disable the rule only when uploading to App Store Connect.
During my investigation of slow builds, I noticed some other frequent Xcode connections. For example, Xcode connects to devimages-cdn.apple.com
every time it launches. According to Apple’s support document Use Apple products on enterprise networks, that domain is used for “Xcode downloadable components”. I assume this refers to platform support in the Components pane of Xcode Settings. (Note that the document doesn’t mention developerservices2.apple.com
.) Again, though, it’s unnecessary to check for updates on every launch. I’d rather not tell Apple whenever I launch Xcode, or whenever I make a local build of my app. It certainly doesn’t align with Apple’s claim that they believe privacy is a fundamental human right. Or perhaps Apple believes that developers are subhuman…
I’ve saved the worst for last. For some reason, Xcode phones home to appstoreconnect.apple.com
every time I open an Xcode project. This also appears to be unnecessary, and I experience no problems after denying the connections in Little Snitch, so I do! I assume that the connections send identifying information about the Xcode project to Apple, otherwise why even make the connections when opening a project? And all of these connections from Xcode, to every domain, require login to your Apple Developer account, so Apple is definitely receiving identifying information about you in any case.
In effect, Xcode is a developer analytics collection mechanism, whether you like it or not, which I don’t.
Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.
Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!
Help Power Techcratic’s Future – Scan To Support
If Techcratic’s content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether it’s for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.
As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. I’m deeply grateful for your support, it truly means the world to me! Thank you!
BITCOIN bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge Scan the QR code with your crypto wallet app |
DOGECOIN D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA Scan the QR code with your crypto wallet app |
ETHEREUM 0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a Scan the QR code with your crypto wallet app |
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.