iosswiftcocoapodsmapkitxcode9.2

MapKit (Swift 4) Xcode 9.2 - 'Could not inset legal attribution from corner 4'


I'm doing a project that deals with a MapKit. My issue is when I run the app, I get the 'Could not inset legal attribution from corner 4.' error. What solution can I take to resolve this issue?

error:

My app screen:


Solution

  • I had the exact same error as you - the map was not showing up and I was getting the error:

    2018-08-25 09:59:17.324966-0400 Parse Foursquare Clone[45537:42276733] Could not inset legal attribution from corner 4

    2018-08-25 09:59:17.332612-0400 Parse Foursquare Clone[45537:42276733] Could not inset scale from edge 9

    The reason is because I did not setup the delegates, MKMapViewDelegate and CLLocationManagerDelegate. Here is what I'm looking at in case you're confused. Once I set these up, the map started appearing. Hope this helps!

    import UIKit
    import MapKit
    import CoreLocation
    
    class locationVC: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate {