Do I need to add the MapKit Framework and turn on Maps in Capabilities in order to use MKMapView?

In iOS Apprentice for iOS 10 I was instructed to add the MapKit Framework and turn on Maps in Capabilities, but in MapKit Tutorial by Audrey Tam we didn’t have to do that? What is the difference between doing those things and not doing those things? Does it really matter whether I add the MapKit Framework and turn on Maps in Capabilities or not?

Hi @brower,

If you are using Swift you don’t have to add the MapKit framework in the build settings, but you need to import it in order to use it’s api:

@import MapKit

Regardless the capabilities settings, take a look at this answer: Xcode/iOS: does Maps need to be switched on in Capabilities? - Stack Overflow

Hope this is helpful

Nikita

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.