Problems with mapkit

Discussion in 'iOS Programming' started by drmcknight, Apr 26, 2011.

  1. drmcknight macrumors newbie

    Apr 26, 2011
    I'm very new to iPhone app development and I've run into a problem straight out of the gate!

    I am loading the mapkit framework by going to Build Phases > Link Binary with Libraries > + > mapkit.framework. Once I do that I am still unable to #import <mapkit/mapkit.h> in my header file.

    Note: When I add the framework the way mentioned above, it adds the framework to my root folder, not my frameworks folder.

    also, most online resources tell me to right-click the frameworks folder and click "add existing framwork..." but that option does not show up for me.

    Any help would be hugely appreciated!

  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    Objective-C is case-sensitive. You want to:
    #import <MapKit/MapKit.h>
    You can simply drag it into your Frameworks. They're not really folders anyways, they're groups.

    Most online resources are based on Xcode 3. Sounds like you are using Xcode 4. Since most educational resources have not been updated for Xcode 4, I suggest you install Xcode 3 and learn using that.

Share This Page