Skip to content
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

Add test for ios17 in CI #157

Merged
merged 17 commits into from
Feb 20, 2024
Merged

Add test for ios17 in CI #157

merged 17 commits into from
Feb 20, 2024

Conversation

natsuk4ze
Copy link
Owner

@natsuk4ze natsuk4ze commented Sep 20, 2023

🎯 PR to add iOS17 to GitHub Actions automated testing

It has passed manual testing, but should be added to automated testing if possible.

✋ Pending for wix/AppleSimulatorUtils#117

Permissions must be granted to the Photos app in order to run the test.

There are three ways to grant permissions

1. Run xcrun simctl privacy~

Apple offers this method, but for some reason it did not work.
xcrun simctl privacy booted grant photos studio.midoridesign.galExample
And we can't test it on macOS.

2. Auto-tap on authorization dialog with XCTest

This is the only method that has worked so far. And probably works on macOS as well as iOS.
However, I discovered method 3 and discontinued it because it is easier. #77

3. Use wix/AppleSimulatorUtils

It is a third party plugin and worked well, but seems to be buggy in iOS17. And we can't use on macOS.

🗒️ Update 2023 12

Maybe macOS should be tested by TCC See: actions/runner-images#8961

🗒️ Update 2024 01

wix/AppleSimulatorUtils is now deprecated. Need to try again to see if xcrun simctl privacy is available in this env.

🗒️ Update 2024 02

wix/AppleSimulatorUtils is fixed in macOS 14.
iOS 16 simurator is removed in macOS 14, so it needs replacement to 17.

@natsuk4ze natsuk4ze added the ✋ pending Pending for some reasons label Sep 20, 2023
@natsuk4ze natsuk4ze changed the title Add test for ios17 Add test for ios17 in CI Jan 16, 2024
@natsuk4ze
Copy link
Owner Author

🚨 I commit to try the test many times, so I will squash&merge

@natsuk4ze natsuk4ze marked this pull request as ready for review February 20, 2024 09:56
@natsuk4ze natsuk4ze enabled auto-merge (squash) February 20, 2024 09:58
@natsuk4ze natsuk4ze merged commit 2d3a6b7 into main Feb 20, 2024
22 checks passed
@natsuk4ze natsuk4ze deleted the Add-test-for-ioa17 branch February 20, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✋ pending Pending for some reasons
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant