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

fix: use simctl privacy for calendar access #288

Merged
merged 4 commits into from
Sep 17, 2020

Conversation

dpgraham
Copy link
Contributor

@dpgraham dpgraham commented Sep 16, 2020

Makes a call to xcrun simctl privacy... instead of directly editing TCC.db to grant calendar access.

Also changes the simulator.js logic so

  1. it explicitly throws an error if Xcode versions 1 ~> 5 are provided.
  2. if anything >= 11.4 is provided, it will default to simulator-xcode-11.4 implementation

WHY? So that when Xcode 13 comes out it will, by default, use the latest Xcode implementation. And if it works (ie: our e2e tests keep passing) we don't need to do anything

(depends on appium/node-simctl#114 ... make sure to publish this first and bump up min node-simctl before merging)

- osx_image: xcode9.3
env: DEVICE=11.3

# TODO: uncomment once Travis 9.4 VMs have iOS 11.3 SDK installed
# - osx_image: xcode9.4
# env: DEVICE=11.3
- osx_image: xcode9.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about adding new environments instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mykola-mokhnach yeah when I get a chance I'll put in a new PR and port this stuff over to Azure.

@dpgraham dpgraham merged commit 97ef0b8 into master Sep 17, 2020
@dpgraham dpgraham deleted the dpgraham-fix-calendar-permissions branch September 17, 2020 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants