Skip to content

Xcode 14 simulator list blank #466

@mzsanford

Description

@mzsanford

While working on a Fastlane / CircleCI setup for some new iOS 16 features I found I was unable to install a simulator.

$ gem install xcode-install && xcversion simulators --install="14.5" && xcrun simctl create 'iPhone 12 (14.5)' com.apple.CoreSimulator.SimDeviceType.iPhone-12 com.apple.CoreSimulator.SimRuntime.iOS-14-5
Successfully installed xcode-install-2.8.1
1 gem installed
[!] No simulator matching 14.5 was found. Please specify a version from the following available simulators:
Xcode 14.0 (/Applications/Xcode-14.0.app)

Exited with code exit status 1

I was also able to replicate this locally with Xcode 14 where my Xcode is showing the iOS 14.5 simulator in question installed. Tracing through xcode-install I found it is requesting the simulator list from https://devimages-cdn.apple.com/downloads/xcode/simulators/index-14.0.0-AF3613FA-81D9-4A8B-8204-9912665677FA.dvtdownloadableindex in InstalledXcode#available_simulators. It appears that URL is invalid and provides a standard AWS permissions error:

$ curl -Ls https://devimages-cdn.apple.com/downloads/xcode/simulators/index-14.0.0-AF3613FA-81D9-4A8B-8204-9912665677FA.dvtdownloadableindex
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>655A17VAM6GKQD6C</RequestId><HostId>I4RaiX9CMvnlJ/K1juQ1HIsIvpOn9NSR1BoJUI3PrTcGtBV7uMPpDxzQiRf2awmlNWqnd/vcio0=</HostId></Error>%

It is unclear to me if this is an Apple "error" or if something has changed with Xcode 14 creating a bug in xcode-install. Whichever is the case it appears XcodeInstall is swallowing the error.

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