首页 > 解决方案 > iOS:XCUITest 中的模拟器位置不起作用

问题描述

让模拟器吐回位置的唯一方法是更改​​模拟器本身的位置。当我更改方案中的设置时,它似乎没有做任何事情。

我错过了什么吗?

Xcode 版本 10.2 (10E125)

在此处输入图像描述

标签: ioslocationxctestsimulatorxcuitest

解决方案


这应该是答案:

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

仅在 XCode 中设置它是行不通的,您还必须检查并正确设置您的 Simulator->Debug->Location。


推荐阅读