XcodesOrg / XcodesOrg/XcodesApp
Installation of iOS runtime fails with dataCorrupted error after XCode 15/iOS 17 Beta 2 release
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.6k
- Forks
- 387
- Avg merge
- 6d 7h
- Merged PRs (30d)
- 3
Description
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:
/usr/local/bin/xcodes runtimes install "iOS 17.0-beta1"/usr/local/bin/xcodes runtimes/usr/local/bin/xcodes runtimes --include-betas
To Reproduce:
- Open a terminal
- 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
- 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
- OS: 13.4
- Xcodes: 1.3.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the listed xcodes runtimes commands and trace the Swift decoding path named in the error, especially sdkToSeedMappings and its platform value. Done means runtime installation and both runtime-listing commands work with Xcode 15/iOS 17 Beta 2 data without the com.apple.platform.xros decoding error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- desktop, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100