Problems with mapkit

Discussion in 'iPhone/iPad Programming' started by drmcknight, Apr 26, 2011.

  1. macrumors newbie

    Joined:
    Apr 26, 2011
    #1
    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!

    Thanks
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Objective-C is case-sensitive. You want to:
    Code:
    #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