Skip to content

Commit

Permalink
feat: set location permission via xcrun simctl privacy (#2275)
Browse files Browse the repository at this point in the history
* feat: set location permission via xcrun simctl privacy

* docs: tweak

* Update execute-methods.md
  • Loading branch information
KazuCocoa committed Nov 26, 2023
1 parent 5d70a42 commit 3f6979b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions docs/execute-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,13 @@ 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` services are by `xcrun simctl privacy` command since XCUITest driver version 5.11.0.
The command will kill the `bundleId` application process if it is running.

Other services such as `contacts` are processed by [WIX applesimutils](https://github.com/wix/AppleSimulatorUtils), which will 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 Expand Up @@ -1460,4 +1466,4 @@ elementAttributes | dict | JSON object containing various attributes of the elem
"name":"Some Button",
"rawIdentifier":null
}
```
```
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

0 comments on commit 3f6979b

Please sign in to comment.