XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.86k stars 133 forks source link

Unable to download iOS runtime 18.x #396

Open borrrden opened 3 weeks ago

borrrden commented 3 weeks ago

The only output I can get out of the command is:

Downloading Runtime iOS 18.0: 0%
Error: ProcessExecutionError()

Of potential relevance, the mac is not new enough to actually run Xcode 16.1, but I only need it to exist so that .NET tooling can access the tooling inside of it. Otherwise, I have to update the OS on a machine that I don't have physical access to which can be a pain....

MattKiazyk commented 3 weeks ago

Couple of questions:

Downloading of iOS 18 runtime is only supported when you have Xcode 16.1 installed and selected (it uses xcodebuild), so in your case, you might not be able to download the runtime with xcodes.

borrrden commented 3 weeks ago

Sorry for not including the information. I am on xcodes 1.6.0 and it is using Xcode 16.1 via the DEVELOPER_DIR switch (otherwise I get a different error message about needing Xcode 16.1).

My wild guess is that there is some executable inside that is not functioning correctly because of being on macOS 13. The same commands that xcodes runs (xcodebuild -downloadPlatform) claim to have downloaded the runtimes, but they appear to not actually do anything. They finish in just a few seconds, claiming the platform is downloaded, but I can't believe that an 8 GiB download would finish so quickly.

cesarjorgemartinez commented 2 weeks ago

+1 here trying to find what occurs, I have see:

For unattended installations I see two things:

ThePredators commented 2 weeks ago

You can download any simulator in here then manually install it :

xcrun simctl runtime add "~/Downloads/iOS_18_Simulator_Runtime.dmg"
borrrden commented 2 weeks ago

Yes that is a workaround that I used but Apple explicitly made clear that those links are going to be removed in the future.

vanyasem commented 1 day ago

@borrrden The new way to install runtimes without using the deprecated links on the website is:

xcodebuild -downloadPlatform iOS -buildVersion 18.1 -exportPath ./SimulatorRuntimes/
xcodebuild -importPlatform ./SimulatorRuntimes/iphonesimulator_18.1_22B81.dmg

See https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes for more details

Although this remains a temporary solution, it is a more accurate approach.

It does not require you to login to your Apple account.

borrrden commented 1 day ago

I had tried those already but they exited immediately without actually downloading anything which was puzzling. I have a feeling it won’t actually work unless running a new enough macOS