自定义iOS模拟器预设位置以伪造为当前位置 [英] Customize iOS Simulator preset locations to fake as current location

查看:241
本文介绍了自定义iOS模拟器预设位置以伪造为当前位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS模拟器中,您可以从某些Apple预定位置中进行选择,或者为您自己的位置输入自定义纬度/经度。



我想要自定义可用位置列表。我从



它位于调试器的底部,是一个看起来像GPS活动图标的图标(来自iOS状态栏) )。


In the iOS simulator, one can select from some Apple pre-defined locations, or enter a custom latitude/longitude for your own location.

I want to customize that list of available locations. I see from this answer that one can provide a gpx file. However, I don't see where to do this in Xcode5 (the screenshots shown in the linked to answer are for Xcode 4).

Suggestions?

解决方案

EDIT: Another way to achieve this to edit your run scheme and select options. and provide GPX file in default location dropbox.Make sure that allow location simulation is enabled.

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/CustomizingYourExperienceThroughXcodeSchemes/CustomizingYourExperienceThroughXcodeSchemes.html#//apple_ref/doc/uid/TP40012848-CH6-SW1

It's at the bottom, in the debugger, an icon that looks like the GPS active icon (from iOS status bar).

这篇关于自定义iOS模拟器预设位置以伪造为当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆