XcodesOrg / XcodesApp

The easiest way to install and switch between multiple versions of Xcode - with a mouse click.
MIT License
6.75k stars 294 forks source link

Installation of iOS runtime fails with dataCorrupted error after XCode 15/iOS 17 Beta 2 release #401

Open macalzad opened 1 year ago

macalzad commented 1 year ago

Describe the bug: Starting from the release of XCode 15/iOS 17 Beta 2, the installation process for the iOS runtime is now failing. When trying to install or list available runtimes, the error Cannot initialize Platform from invalid String value com.apple.platform.xros is thrown. This happens when running the following commands:

To Reproduce:

  1. Open a terminal
  2. Run any of the following commands:
    • /usr/local/bin/xcodes runtimes install "iOS 17.0-beta1"
    • /usr/local/bin/xcodes runtimes
    • /usr/local/bin/xcodes runtimes --include-betas
  3. Notice the following error:
    • Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "sdkToSeedMappings", intValue: nil), _PlistKey(stringValue: "Index 51", intValue: 51), CodingKeys(stringValue: "platform", intValue: nil)], debugDescription: "Cannot initialize Platform from invalid String value com.apple.platform.xros", underlyingError: nil))

Expected behavior: These commands should run without errors and either install the specified runtime or list the available runtimes.

Version

aaronclarke commented 1 year ago

I see this is an error around com.apple.platform.xros, which is the name for visionOS, and that @LavareX's changes in #400 are working on adding visionOS support... Would that fix this issue?

aaronclarke commented 1 year ago

Checking back on this issue, I think this was mistakenly opened against the wrong project. This is issue was opened in the XcodesApp project, but all of the description of the issue was about the xcodes command line tool. https://github.com/XcodesOrg/xcodes