iOS:XCUITest中的模拟器位置不起作用

时间:2019-05-03 22:01:04

标签: ios location xctest simulator xcuitest

使模拟器吐回某个位置的唯一方法是更改​​模拟器本身的位置。当我更改方案中的设置时,它似乎没有任何作用。

我想念什么吗?

Xcode版本10.2(10E125)

enter image description here

2 个答案:

答案 0 :(得分:0)

这应该是答案:

https://willowtreeapps.com/ideas/simulating-location-in-ios

仅在XCode中设置它无效,您还必须检查并正确设置Simulator-> Debug-> Location。

答案 1 :(得分:0)

好的,在对我们的存储库进行了广泛测试之后-这就是您要寻找的内容:

https://github.com/JonGabilondoAngulo/idevicelocation

您可以从控制台(通过CI)使用它来设置模拟器的位置,它的工作方式就像一个超级魅力:-)

相关问题