After putting in the Xcode 27 beta, I attempted to obtain all of the simulator runtimes that I wanted. The watchOS runtime put in flawlessly, however I had points putting in the iOS runtime. I stored seeing a dialog that stated that Xcode was fetching obtain info and regardless of how lengthy I waited; that dialog wouldn’t go away.
I reinstalled Xcode and rebooted my Mac, however I simply couldn’t get the iOS runtime to obtain. I appeared round on the web, and I discovered which you can set up runtimes from the command line utilizing xcodebuild.
By working xcodebuild -downloadPlatform iOS you’ll be able to obtain the runtimes for the required platform utilizing the Xcode model that you’ve got chosen on the command line.
To just remember to have the right Xcode model chosen, use
xcode-select -pto see which Xcode you’ve gotten chosen. If it isn’t the Xcode model that you simply need to set up runtimes for, usexcode-select -sto decide on your Xcode model. For instance,xcode-select -s /Purposes/Xcode-beta.app. Be aware that you need to run these instructions assudo.
In my case, putting in with xcodebuild initally did not work. I stored seeing the next:
Discovering content material...
Routinely resolved structure variant for platform iOS as 'common'.
No matching downloadable discovered for platform: iOS
No downloadable was discovered for iOS.
This advised me that xcodebuild was searching for a common iOS runtime, which it could not discover. I attempted putting in watchOS and visionOS by way of this very same command, and I noticed that these have been truly pulling the arm64 runtime as a substitute of a common runtime.
This made me assume that possibly iOS must also be downloaded as arm64.
After a bit little bit of digging by way of the documentation, I discovered that I might run the next command to specify that I wished to obtain the arm64 runtime as a substitute of the common one:
xcodebuild -downloadPlatform iOS -architectureVariant arm64
With this command, I used to be capable of simply set up iOS 27 comparable runtimes for Xcode builds, so I ought to run in an identical means, as a result of you aren’t capable of set up your runtimes for every other passage runtime from the command line and never instantly handle the consumer putting in your runtimes to your Xcode builds. You must also use a single command to put in all of the totally different platforms that may work a bit bit like this:
xcodebuild -downloadAllPlatforms -architectureVariant arm64
