-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtimes download Broken #368
Comments
Just running
This is on a Ventura machine with Xcode 15.0.1. Was working last month. |
Looks like for the iOS 18 runtimes - there's no more |
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? |
On: https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes it indicates that at some point the runtimes will be removed from there. In investigating, I've found a few things. Apple is using an apple archive now for simulators. People who are smarter then me hopefully can figure it out how we can download and extract the new form |
I just got this when trying out Xcode 16 Beta. |
@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. struct DownloadableRuntimesResponse: Decodable {
let sdkToSimulatorMappings: [SDKToSimulatorMapping]
let sdkToSeedMappings: [SDKToSeedMapping]
let refreshInterval: Int
@SaveArray var downloadables: [DownloadableRuntime] // filters invalid array elements
let version: String
} I can help contribute this functionality. |
That would be very much appreciated! |
@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 |
same issue here |
+1 |
+1 Specifically, trying to install the |
when contentType is |
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 |
@phantomato I cannot install your package. this is the error I'm receiving when I try to install it:
not sure what is the issue, but I have NO issues when I install the EDIT: after that I manage to run thx a lot |
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? |
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. |
Agreed, using xcodes in our CI/CD environment is blocked every time Apple changes their API, even with all binaries cached. |
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: |
Using official step from official docs |
@jayshah123 We use |
It's unfortunate that this issue has been open for quite so long. I decided to switch to ipsw. Think this might help someone: echo 'iOS 16.4 Simulator' | ipsw download xcode --sim |
Thanks for your patience. 1.5.0 has been released which fixes the old runtime downloads. |
@MattKiazyk Is it by design that installed runtimes are left mounted after the last update? This is a change of behavior from before. Example
|
This seemed to have fixed itself for us for about a month but now the same issue is happening consistently. We are running the following step in Github Actions:
and are consistently getting the following error:
Is this still failing for anyone else? |
@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.: - name: Download 16.4 sim
run: |
sudo rm -rfv ~/Library/Developer/CoreSimulator/* || true
sudo xcodes runtimes install --keep-archive 'iOS 16.4' In other words, now you just need to free some space before downloading the runtimes on GitHub Actions. Hope this helps. |
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 |
Since Xcode 16 updates things are broken.
new ContentType:
CryptexDiskImage
that isn't handled.The text was updated successfully, but these errors were encountered: