【发布时间】:2014-11-10 06:15:48
【问题描述】:
我想在我的 iPhone 5S 设备上使用特定的经度和纬度模拟虚假位置。有没有办法在 XCode 中做到这一点。我尝试通过在 XCode 中添加 GPX 文件来使用模拟位置功能,但它不起作用。提前谢谢你。
【问题讨论】:
-
为什么不将“假”位置设置为以编程方式创建的位置?
CLLocationCoordinate2D CLLocationCoordinate2DMake( CLLocationDegrees latitude, CLLocationDegrees longitude) -
Debug>Simulate LocationXcode 中的菜单应该工作。我们需要更多信息。 -
@rintaro:标题包含“真正的iOS设备”字样,您的答案适用于模拟器
-
@donmarkusi 这不是关于模拟器菜单,而是关于 Xcode 菜单。它适用于“真正的 iOS 设备”。见:developer.apple.com/library/ios/recipes/xcode_help-debugger/…
-
@AWSSET developer.apple.com/library/ios/recipes/… 这是您要找的吗?