-
-
Notifications
You must be signed in to change notification settings - Fork 446
Description
I have installed the Appium XCUItest driver version 8.3.1.
I need to set the geolocation for an Appium test on an iOS 15.5 emulator. However, when I attempt to use the setSimulatedLocation method on this device, I receive the following error:
Your device does not support location simulation" UserInfo={NSLocalizedDescription=Your device does not support location simulation} when running "execute/sync" with method "POST" and args "mobile: setSimulatedLocation"
On another emulator with iOS 18.0, I can set the geolocation using this method from XCUItest:
mobile: setSimulatedLocation¶
This method sets the simulated geolocation value, but it is only available starting with XCUItest driver version 4.18. Additionally, Xcode must be at version 14.3 or later, and iOS must be at version 16.4 or later.
For iOS 17+ real devices, it is recommended to simulate the device's location.
How can I handle geolocation on an iOS device with a version earlier than 16.4?