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

feat: set location permission via xcrun simctl privacy #2275

Merged
merged 3 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: set location permission via xcrun simctl privacy
  • Loading branch information
KazuCocoa committed Nov 26, 2023
commit c98f7868e59af7f06ba0246966dc84ce5e9d2c7e
7 changes: 6 additions & 1 deletion docs/execute-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,12 @@ Either 'yes', 'no', 'unset' or 'limited'

### mobile: setPermission

Set application permission state on Simulator. This method requires [WIX applesimutils](https://github.com/wix/AppleSimulatorUtils) to be installed on the host where Appium server is running.
Set application permission state on Simulator.

`location` and `location-always` are by `xcrun simctl privacy` command since XCUITest driver version 5.11.0. The command kills the `bundleId` application process.

Other commands such as `contacts` are by [WIX applesimutils](https://github.com/wix/AppleSimulatorUtils), which does not kill the `bundleId` application process.
[WIX applesimutils](https://github.com/wix/AppleSimulatorUtils) needs to be installed on the host where Appium server is running.

#### Arguments

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"dependencies": {
"appium-idb": "^1.6.13",
"appium-ios-device": "^2.5.4",
"appium-ios-simulator": "^5.3.3",
"appium-ios-simulator": "^5.5.0",
"appium-remote-debugger": "^10.0.0",
"appium-webdriveragent": "^5.15.2",
"appium-xcode": "^5.1.4",
Expand Down