-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode 14 simulator list blank #466
Comments
I fired up Proxyman and found that Xcode 14 requested the list from |
Btw this issue seems to be causing CircleCI completely unable to test devices running iOS earlier than 15.5 |
@EricAtomic I made a fork with a hacked version to test this using the following commands:
I ran into a different issue and ended up fixing my project so the test could run on iOS 15.5 as a workaround but maybe this will work for you. I did not make a PR because I'm unsure how that change will interact with different versions of Xcode. |
@mzsanford Thanks, that looks great! |
@mzsanford what's your install_prefix? |
@marcosgriselli I was unsure about that value, which is part of not making a real PR. I pulled that |
@rogerluan do you see any issues with updating the install prefix for this cases? |
Turns out we hadn't been running tests on `tvOS` for a while: > [19:08:22]: Couldn't find any matching simulators for '["Apple TV (15.2)"]' - falling back to default simulator > [19:08:22]: Found simulator "iPhone 13 Pro (15.5)" I found this went I went to dig into [this failure](#1926 (comment)). Turns out that wasn't running on `tvOS` anyway. This turns them back on, fixes the compilation issues on `tvOS` tests, and ensures that we don't run into this issue again. ### Changes: - Renamed device in lane `test_tvos` - Enabled `ensure_devices_found` on `iOS` and `tvOS` lanes. This will also ensure that we don't stop running tests on iOS XX because it doesn't find that simulator. - Removed `UnitTestHostApp` storyboards and scene, since those aren't supported in `tvOS`, and aren't needed because there's no UI. - Made `StoreKitUnitTests` and `UnitTestHostApp` targets universal - No longer linking `AdServices` on `tvOS` in test targets - Disabled attribution tests on `tvOS`. Those methods weren't being compiled, but we were testing that a message was being sent, even though it no longer was. - Changed iOS 14 tests to use Xcode 13 due to xcpretty/xcode-install#466 (same as #1918).
Turns out we hadn't been running tests on `tvOS` for a while: > [19:08:22]: Couldn't find any matching simulators for '["Apple TV (15.2)"]' - falling back to default simulator > [19:08:22]: Found simulator "iPhone 13 Pro (15.5)" I found this went I went to dig into [this failure](#1926 (comment)). Turns out that wasn't running on `tvOS` anyway. This turns them back on, fixes the compilation issues on `tvOS` tests, and ensures that we don't run into this issue again. ### Changes: - Renamed device in lane `test_tvos` - Enabled `ensure_devices_found` on `iOS` and `tvOS` lanes. This will also ensure that we don't stop running tests on iOS XX because it doesn't find that simulator. - Removed `UnitTestHostApp` storyboards and scene, since those aren't supported in `tvOS`, and aren't needed because there's no UI. - Made `StoreKitUnitTests` and `UnitTestHostApp` targets universal - No longer linking `AdServices` on `tvOS` in test targets - Disabled attribution tests on `tvOS`. Those methods weren't being compiled, but we were testing that a message was being sent, even though it no longer was. - Changed iOS 14 tests to use Xcode 13 due to xcpretty/xcode-install#466 (same as #1918).
…stall` with `xcodes` (#2421) `CircleCI` is deprecating `Xcode 13` soon. [`CircleCI` still recommends using `xcode-install`](https://support.circleci.com/hc/en-us/articles/360011880714-How-do-I-add-different-simulators-to-my-iOS-builds-), but [it breaks with Xcode 14](xcpretty/xcode-install#466), so [it's been deprecated now](https://github.com/xcpretty/xcode-install/blob/master/MIGRATION.md#known-limitations). This replaces the runtime installation with [`xcodes`](https://github.com/RobotsAndPencils/xcodes).
While working on a Fastlane / CircleCI setup for some new iOS 16 features I found I was unable to install a simulator.
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
inInstalledXcode#available_simulators
. It appears that URL is invalid and provides a standard AWS permissions 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.
The text was updated successfully, but these errors were encountered: