Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Default simulated location

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.

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?

Thanks!

The setting

like image 412
Paul Peelen Avatar asked Jan 11 '13 19:01

Paul Peelen


People also ask

How do I change simulator location in Xcode?

Allow location simulationSelect Run | Edit Configurations from the main menu or Edit Configurations from the run/debug configuration selector on the toolbar. Choose your configuration from the list and go to the Options tab. Select the Allow Location Simulation checkbox and click OK.

Where are iOS Simulators stored?

type: ~/Library/Application Support/iPhone Simulator.

How do you simulate a location?

Click the location on the map you want to simulate, and then press the lowercase L key. A dialog will appear with the message, “Simulated Location Set”. After a short time, the simulated location you set in the Editor will appear as a pink dot in the Android Emulator. Click anywhere on the map, and press Shift+L.


1 Answers

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(?)).

So the answer is: NO, the app is not affected.

like image 191
Paul Peelen Avatar answered Sep 29 '22 10:09

Paul Peelen