6.6 C
Canberra
Sunday, June 28, 2026

Putting in simulator runtimes from the command line – Donny Wals


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 -p to see which Xcode you’ve gotten chosen. If it isn’t the Xcode model that you simply need to set up runtimes for, use xcode-select -s to decide on your Xcode model. For instance, xcode-select -s /Purposes/Xcode-beta.app. Be aware that you need to run these instructions as sudo.

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

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles