Last updated 1 min read

Why is xcodebuild slower than the Xcode GUI?

#iOS App Development

  1. A lot of time is wasted by xcbuild on server requests to check provisioning profiles. It can be hackarounded by pointing developerservices2.apple.com to another host in /etc/hosts
  2. Xcode does some private magic under the hood to keep the building server caches warm. The only way to workaround it is to use a custom build system like bazel

References

Why is xcodebuild slower than the Xcode GUI? | by Thomas Ricouard | Oct, 2024 | Medium