xcodes: Runtimes download Broken
Since Xcode 16 updates things are broken.
new ContentType: CryptexDiskImage that isn’t handled.
<dict>
<key>category</key>
<string>simulator</string>
<key>contentType</key>
<string>cryptexDiskImage</string>
<key>dictionaryVersion</key>
<integer>2</integer>
<key>downloadMethod</key>
<string>mobileAsset</string>
<key>fileSize</key>
<integer>8455760175</integer>
<key>identifier</key>
<string>com.apple.dmg.iPhoneSimulatorSDK18_0_b1</string>
<key>name</key>
<string>iOS 18.0 beta Simulator Runtime</string>
<key>platform</key>
<string>com.apple.platform.iphoneos</string>
<key>simulatorVersion</key>
<dict>
<key>buildUpdate</key>
<string>22A5282m</string>
<key>version</key>
<string>18.0</string>
</dict>
<key>version</key>
<string>18.0.0.1</string>
</dict>
```
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 26 (5 by maintainers)
Just running
xcodes runtimesfails here:This is on a Ventura machine with Xcode 15.0.1. Was working last month.
Thanks for your patience. 1.5.0 has been released which fixes the old runtime downloads.
Hi folks, I’ve made a simple workaround in my fork that supports installations of older + newer runtimes https://github.com/phantomato/xcodes/releases/tag/1.4.2
At the moment I’m able to install all the runtimes including iOS 18, VisionOS 2, watchOS 11. It works by assuming that the matching non-cryptex disk image still exists at https://developer.apple.com/download/all/ and consistently follows the naming convention. Hopefully, this will last long enough until we figure out the proper way to handle cryptex disk images.
Can be tried out using
brew install phantomato/patched/xcodes@Ernest0-Production yes that’s the plan. At least allow old runtimes download and give proper errors for new ones. There’s a branch started already which has this change. Was just investigating if I could do anything with it easily
We are maintaining public macOS GitHub runners and over time found that we just can’t rely on downloading the runtime installers directly from Apple.
Instead of using the xcodes tool we maintain a few scripts to install Xcode and runtimes from existing packages. I published them here in case they would be useful to anyone here:
https://github.com/namespacelabs/xcode-install
Looks like for the iOS 18 runtimes - there’s no more
sourceproperty that gave the URL to download it 😬Hi team, this issue is open for two weeks and, unfortunately, is a blocker for many of us. Do you have any ETA when it could be fixed for older runtimes? Thanks a million.
Using official step from official docs
xcodebuild -downloadPlatform iOShttps://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes#Install-and-manage-Simulator-runtimes-from-the-command-line seems to work I guess? Is it recommended?For people who visit this thread in search of ways to download iOS 18 simulators.
Xcode 16.1 Beta 3 added support for downloading specific simulators:
https://developer.apple.com/documentation/xcode-release-notes/xcode-16_1-release-notes
Apple has changed the api in breaking ways a few times now, can we get an optional flag to supply the index as a file so we can unblock ourselves?
@uknowmeright, I faced the same problem on GitHub Actions. It seems like they recently (literally last week) reduced the size of available disk space, so you can’t download/mount an additional iOS Runtime.
I solved this by removing the existing simulators before installing the required runtime, e.g.:
In other words, now you just need to free some space before downloading the runtimes on GitHub Actions. Hope this helps.
@MattKiazyk Is it by design that installed runtimes are left mounted after the last update? This is a change of behavior from before. Example
df -h:@MattKiazyk I think it makes sense to add safer decoding each DownloadableRuntime object.
Currently, only the new SDKs do not have the source field, but the old ones do.
I can help contribute this functionality.
Looks like it’s still available at https://download.developer.apple.com/Developer_Tools/iOS_18_beta_Simulator_Runtime/iOS_18_beta_Simulator_Runtime.dmg which has a similar URL structure as the older versions.
Maybe we can infer the URL in case it’s not present in the response?