Reputation: 1371
I'm trying to simulate a moving location (freeway drive) on the ios simulator, however it simply doesn't work. The only location that works is the static Custom Location...
option.
To reproduce the problem:
Xcode>open developer tools>simulator
,debug>location
to "Freeway Drive"It loads for a while, then says:
Current Location Not Available
Your current location cannot be determined at this time
When I open up system.log
, I see the message:
SimulatorBridge[41185]: Selected location simulation scenario does not exist
I'm using Xcode 7.1.1 and the iPhone 6s / iOS 9.1 simulator. I've tried:
Simulator>Reset Content and Settings...
but nothing seems to work. Anyone know what I might be doing wrong?
Upvotes: 3
Views: 5257
Reputation: 1371
Ok, this may be a problem on Apple's end with Simulator for iOS 9.1.
I downloaded the iOS 9.0 simulator instead (Xcode>Preference>Downloads
), fired up Maps in Simulator with the location set to Freeway Drive
, and everything works -the location updates.
If you've had trouble simulating a moving location in your own app, just download and use a previous iOS Simulator version like above. Make sure you clean your project in Xcode first (Product>Clean
), then rebuild it and everything should work fine.
Upvotes: 2