Skip to content

Commit 3f6979b

Browse files
authored
feat: set location permission via xcrun simctl privacy (#2275)
* feat: set location permission via xcrun simctl privacy * docs: tweak * Update execute-methods.md
1 parent 5d70a42 commit 3f6979b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/execute-methods.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,13 @@ Either 'yes', 'no', 'unset' or 'limited'
564564

565565
### mobile: setPermission
566566

567-
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.
567+
Set application permission state on Simulator.
568+
569+
`location` and `location-always` services are by `xcrun simctl privacy` command since XCUITest driver version 5.11.0.
570+
The command will kill the `bundleId` application process if it is running.
571+
572+
Other services such as `contacts` are processed by [WIX applesimutils](https://github.com/wix/AppleSimulatorUtils), which will not kill the `bundleId` application process.
573+
[WIX applesimutils](https://github.com/wix/AppleSimulatorUtils) needs to be installed on the host where Appium server is running.
568574

569575
#### Arguments
570576

@@ -1460,4 +1466,4 @@ elementAttributes | dict | JSON object containing various attributes of the elem
14601466
"name":"Some Button",
14611467
"rawIdentifier":null
14621468
}
1463-
```
1469+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"dependencies": {
7373
"appium-idb": "^1.6.13",
7474
"appium-ios-device": "^2.5.4",
75-
"appium-ios-simulator": "^5.3.3",
75+
"appium-ios-simulator": "^5.5.0",
7676
"appium-remote-debugger": "^10.0.0",
7777
"appium-webdriveragent": "^5.15.2",
7878
"appium-xcode": "^5.1.4",

0 commit comments

Comments
 (0)