[TIMOB-25407] Xcode 9: Debug -> Location does not show standard locations and custom location does not set location
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-12-13T11:44:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Martin Williamson |
Assignee | Unknown |
Created | 2017-10-17T16:30:34.000+0000 |
Updated | 2018-08-06T17:36:59.000+0000 |
Description
When building with Xcode 9 and iOS 11 the menu option Debug -> Location does not show the standard locations (apple etc) and custom location does not set location.
Using location services / get location etc in app produces a GPS error.
Building to 10.3 or below shows the locations correctly and location works as expected
Looks like Xcode 9 changes the default behavior (see [this related thread](https://stackoverflow.com/questions/24951590/xcode-debug-simulate-location-menu-item-not-available-greyed-out) and [this Apple thread](https://forums.developer.apple.com/thread/83599)). Please also ensure to include the new
NSLocationAlwaysAndWhenInUseUsageDescription
property in your plist.NSLocationAlwaysAndWhenInUseUsageDescription is defined and the location works fine with iOS 11 on the device just not in the simulator, the simulator (especially the iphone X one) also runs quite slow. However, if you close the appcelerator launched simulator and launch the Xcode one, all works fine.
This seems to be resolved in Studio v5.0 and latest XCode
Happy to hear, thank you! I am still curious if it was Xcode or Appc-Studio, because Appc-Studio didn't really change much in that direction. But in any case, thanks for the feedback -> Resolving!
Closing as invalid. If incorrect, please reopen.