WatchOS2 + MapView not working?

Hi

I'm using Xcode 7 Beta 5 and just trying to show a basic mapview on the main interface of the watch in WatchOS2 with the following code but when it eventually loads and displays the screen the map is always blank.


As you can see, nothing fancy going on here lol

override func awakeWithContext(context: AnyObject?) {
        super.awakeWithContext(context)
       
        /
        let location = CLLocationCoordinate2D(latitude: 51.471571, longitude: -0.454363)
        let span = MKCoordinateSpan(latitudeDelta: 0.05, longitudeDelta: 0.05)
        let region = MKCoordinateRegion(center: location, span: span)
        mapView.setRegion(region)
    }


I can't even get the most basic map stuff to work in new version!


Been using mapView loads in WatchOS 1 with no problems but suprised to hit such a fundamental stumbling block beofore i've even got started properly in v2


Anyone else seen this or has anything changed re: map in OS 2


Thanks

Steve

Been having a bit more of a play and have now got this working!

The code I originally posted now shows centred on the mapview within my app. Not sure if the following steps helped oin anyway or if it was a random issue but I experimented with the following.


1. On both iPhone and watch simulators I set a location simulation (City Bicycle Ride)

2. Made my MapView interactive by setting Accessibility in Identity Inspector to Enabled (I later set it back and still seems to work)

3. On the map within my app it was showing unrendered map tiles (just the grid), I clicked on the map which took me to the Directions part of the map app on the watch, I clicked on the map section and it opened Maps within the watch

4. Quit the maps app and went back into my app and the map showed fine and has done since


All this was in the simulator but I'm wondering if actually interacting with the actual Maps app on the simulator sparked it into life?


If I find anything else that may indicate when it will/won't work I'll repost


Cheers

Steve

Hi Steve,


I am glad you got it working! We would appreciate it if you filed a bug report about this experience, and include all the details of what you did that you can remember. Thanks so much!


-zk

I am still getting this issue with the release version of XCode 7.0 and beta 2 of 7.1. Does anyone know a way around it? I want to take screenshots for the AppStore, which have to be 42mm, but I only have a 38mm watch so I need to use the simulator, but can't get it to show any maps.


I have tried the various workarounds listed on this thread but to no avail. Can anyone help?

WatchOS2 + MapView not working?
 
 
Q