自定义iOS模拟器预设位置以伪造为当前位置 [英] Customize iOS Simulator preset locations to fake as current location
问题描述
在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.
It's at the bottom, in the debugger, an icon that looks like the GPS active icon (from iOS status bar).
这篇关于自定义iOS模拟器预设位置以伪造为当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!