stonecompass
stonecompass

Reputation: 548

Not required to import MapKit.framework?

I'm making an app for my exam that uses theMapKitView andCoreLocation for getting different locations and adding pins to the map.

But I realized that I hadn't imported the MapKit.framework in the build settings, which I always was told to do. What I don't understand is that everything still works without it. I'm simply using "import MapKit" when I have to use it.

So my question is: Is it really necessary to import the framework in the build settings too? Some of the other students said that theirs dodn't work without it. Thanks!

Upvotes: 1

Views: 155

Answers (1)

Quentin Hayot
Quentin Hayot

Reputation: 7876

When you enabled the "Maps" availability. Xcode automatically linked MapKit for you.

enter image description here

Upvotes: 4

Related Questions