Crash on Compiling App With MKMapView

December 31, 2009. Filed under iphone

Earlier today I was trying to add an MKMapView to an iPhone app via Interface Builder and was confused when the interface simulator showed the correct interface, but the application crashed on launch.

Ater a bit of confusion I realized that I needed to add MapKit.framework to the application's frameworks list. The framework exists at:


And with that, your program should launch without any issues. Suppose this was a very obvious problem, but couldn't find any search results which pointed me in the right direction, so just throwing this out there very quickly. Hopefully it will help someone, possibly my future self.