Xcode 默认模拟位置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14285453/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode Default simulated location
提问by Paul Peelen
I have set the Default Location
in the Scheme setting for the app (see screenshot) and just send the app to Apple to get approved.
However, the same version I also send out to QA, Project Managers and other devs using the Ad Hoc provisioning profile. Now when I launch the app using the Ad Hoc version, it always simulates the Gothenburg location (GPX file), eventhough I currently am in Stockholm.
我已经Default Location
在应用程序的方案设置中设置了(见屏幕截图),然后将应用程序发送给 Apple 以获得批准。但是,我也使用 Ad Hoc 配置文件发送给 QA、项目经理和其他开发人员的相同版本。现在,当我使用 Ad Hoc 版本启动应用程序时,它总是模拟哥德堡位置(GPX 文件),即使我目前在斯德哥尔摩。
My question is, is the version send to Apple affected by this? Will is also simulate the Gothenburg location, or will it use the users REAL position?
我的问题是,发送给 Apple 的版本是否受此影响?还会模拟哥德堡的位置,还是会使用用户的真实位置?
Thanks!
谢谢!
采纳答案by Paul Peelen
I happened to send a release (of my private apps) to Apple having the GPX files, by misstake. The app is not affected. It seems there is some kind of bug that overwrites the GPS values on the device when debugging from XCode. Only way to fix is to restart the device (or maybe to build without GPX files(?)).
我碰巧向 Apple 发送了一份(我的私人应用程序的)版本,其中包含 GPX 文件,这是错误的。该应用程序不受影响。从 XCode 调试时,似乎存在某种错误会覆盖设备上的 GPS 值。唯一的修复方法是重新启动设备(或者可能在没有 GPX 文件的情况下构建(?))。
So the answer is: NO, the app is not affected.
所以答案是:不,应用程序不受影响。