Skip to content

xcodes runtimes install fails with dataCorrupted - Authentication enum missing none case #485

Description

@Szymon-Gesicki

xcodes runtimes install fails when parsing Apple's downloadable runtimes index because the Authentication enum in Runtimes.swift does not handle the "none" value that Apple recently introduced for 27.0 beta 3 simulator runtimes.

Error:

dataCorrupted(Swift.DecodingError.Context(

    codingPath: [

      CodingKeys(stringValue: "downloadables", intValue: nil),

      _CodingKey(stringValue: "Index 393", intValue: 393),

      CodingKeys(stringValue: "authentication", intValue: nil)

    ],

    debugDescription: "Cannot initialize Authentication from invalid String value none",

    underlyingError: nil

  ))

Apple's runtime index (devimages-cdn.apple.com/downloads/xcode/simulators/index2.dvtdownloadableindex) now includes 4 entries with "authentication": "none" (iOS/watchOS/tvOS/visionOS 27.0 beta 3). Parsing the full index fails before filtering to the requested version, so any xcodes runtimes install call breaks - even for older runtimes like iOS 26.2.

  • xcodes: 2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions