MKMapView: could not inset legal attribution from corner 4

I have a MKMapView added to my scene using the Interface Builder. I have not set any properties programatically and have not even created an outlet for it yet. Its constraints are as follows:


  • Map View.width
  • Map View.top
  • Map View.height
  • Map View.centerX


When I run the application I get the following errors logged:


2017-12-01 09:50:40.852622+0100 myapp[5254:112508] Could not inset legal attribution from corner 4
2017-12-01 09:50:42.098576+0100 myapp[5254:112508] [VKDefault] Tile 4.2.3 (256) in current unloaded state for 0.06 seconds - Polygons - Loading (ephemeral) (0.08 sec), Rivers - Loading (ephemeral) (0.06 sec), Roads - Loading (ephemeral) (0.06 sec), Point Labels - Loading (ephemeral) (0.06 sec), Polygon Labels - Loading (ephemeral) (0.06 sec), Road Labels - Loading (ephemeral) (0.06 sec), Resources - Unavailable (terminal) (0.60 sec), Attributes - Loading (ephemeral) (0.06 sec)
2017-12-01 09:50:42.113294+0100 myapp[5254:112508] [VKDefault] Tile 5.2.3 (256) in current unloaded state for 0.05 seconds - Polygons - Loading (ephemeral) (0.05 sec), Rivers - Loading (ephemeral) (0.05 sec), Roads - Loading (ephemeral) (0.05 sec), Point Labels - Loading (ephemeral) (0.05 sec), Polygon Labels - Loading (ephemeral) (0.05 sec), Road Labels - Loading (ephemeral) (0.05 sec), Resources - Unavailable (terminal) (0.60 sec), Attributes - Loading (ephemeral) (0.05 sec)
2017-12-01 09:50:42.114864+0100 myapp[5254:112508] [VKDefault] Tile 5.1.3 (256) in current unloaded state for 0.03 seconds - Polygons - Loading (ephemeral) (0.04 sec), Rivers - Loading (ephemeral) (0.04 sec), Roads - Loading (ephemeral) (0.04 sec), Point Labels - Loading (ephemeral) (0.03 sec), Polygon Labels - Loading (ephemeral) (0.03 sec), Road Labels - Loading (ephemeral) (0.03 sec), Resources - Unavailable (terminal) (0.60 sec), Attributes - Loading (ephemeral) (0.03 sec)
2017-12-01 09:50:42.117813+0100 myapp[5254:112508] [VKDefault] Tile 4.1.3 (256) in current unloaded state for 0.03 seconds - Polygons - Loading (ephemeral) (0.03 sec), Rivers - Loading (ephemeral) (0.03 sec), Roads - Loading (ephemeral) (0.03 sec), Point Labels - Loading (ephemeral) (0.03 sec), Polygon Labels - Loading (ephemeral) (0.03 sec), Road Labels - Loading (ephemeral) (0.03 sec), Resources - Unavailable (terminal) (0.60 sec), Attributes - Loading (ephemeral) (0.03 sec)


What could be the issue? I should add that while the debugger is connected it only logs the error and goes on. But if I stop the debugger and run the application on the device manually, it immediately crashes. When I remove the MKMapVew, it no longer crashes.


Xcode Version 9.1 (9B55)

iOS 11.1

Replies

I get the same warning. I'm using an existing project with a map view and the warnings / errors only happen in Xcode 9.2 for me, iOS 11.2. If I read the error right it is a reference to the legal attribution link shown in the bottom of the map view. This view does indeed show and functions by switching over to safari for the legal information. However, my experience differs in that the error / warning has no effect on the app. It runs with both debugger attached and without. Therefore I had concluded it must be verbose logging for this version of mapkit, but i'm going to have to look into it in more depth if it causes the app to crash.


Have you tried settings up a blank app, from scratch and adding only a map view? If this does not crash it points to some other part of your code being the problem.

I tried setting up a blank app from scratch with only a map view and I still get the error. Looks like there may be a bug in Xcode.

This still happens on ios 11.3.1, any idea how to deal with it? MapKit has become really sluggish when used with custom overlays.