xcodes: `xcodes runtime install` no longer working

Looks like Apple must have changed something, this has stopped working today:

$ sudo xcodes runtimes install "iOS 14.5" 

Leads to

Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: “The given data was not a valid property list.”, underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 “Cannot parse a NULL or zero-length data” UserInfo={NSDebugDescription=Cannot parse a NULL or zero-length data})))

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Reactions: 2
  • Comments: 19 (8 by maintainers)

Most upvoted comments

You’re right. Looks like the response is just empty:

curl 'https://devimages-cdn.apple.com/downloads/xcode/simulators/index2.dvtdownloadableindex' \
-H 'Host: devimages-cdn.apple.com' \
-H 'If-None-Match: "3fe4f8deaace328312f2cad8b2a9c94c"' \
-H 'Accept: */*' \
-H 'If-Modified-Since: Thu, 25 Jan 2024 18:10:28 GMT' \
-H 'User-Agent: Xcode/22503 CFNetwork/1490.0.4 Darwin/23.2.0' \
-H 'Accept-Language: en-US,en;q=0.9' \
-H 'Connection: keep-alive'
HTTP/1.1 200 OK
x-amz-id-2: Ku2mQimK/rbp7nHSZ3peG2che7wpEJDZILMZceHZYRpn8gepGAoOEd8LmGVCsYj52N29sHBY8u4=
x-amz-request-id: CT0NCY3AF6HZF1XB
Date: Tue, 30 Jan 2024 22:09:37 GMT
Last-Modified: Tue, 30 Jan 2024 04:31:41 GMT
x-amz-server-side-encryption: AES256
x-amz-version-id: cDhwQHOubjWo0RD0wneYxK6zartyiYd9
Accept-Ranges: bytes
Content-Type: text/plain
Server: AmazonS3
Content-Length: 0
Cache-Control: max-age=600, public
Via: http/1.1 ussjc9-edge-lx-002.ts.apple.com (acdn/133.14417), http/1.1 ussjc9-edge-bx-007.ts.apple.com (acdn/224.14428)
X-Cache: hit-fresh, hit-fresh
CDNUUID: feb4cca2-be85-4bf4-95fd-5005d4b7260a-3017373680
Access-Control-Allow-Origin: *
Etag: "d41d8cd98f00b204e9800998ecf8427e"
Age: 422
Connection: keep-alive

They’ve fixed it @NachoSoto! Glad I don’t have to make new versions!

Looks like iOS 12 and 13 are broken again lol

sudo xcodes runtimes install "iOS 13.7"

Error: typeMismatch(Swift.Int, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "sdkToSeedMappings", intValue: nil), _PlistKey(stringValue: "Index 110", intValue: 110), CodingKeys(stringValue: "seedNumber", intValue: nil)], debugDescription: "Expected to decode Int but found a string/data instead.", underlyingError: nil))
Error: typeMismatch(Swift.Int, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "sdkToSeedMappings", intValue: nil), _PlistKey(stringValue: "Index 110", intValue: 110), CodingKeys(stringValue: "seedNumber", intValue: nil)], debugDescription: "Expected to decode Int but found a string/data instead.", underlyingError: nil))

Exited with code exit status 1

@NachoSoto @adamsousa Looks to be back up now.

Same issue here, I’m not able to install any OS using Xcode or xcodes. Seems like an Apple issue…