Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8829465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:50:20+00:00 2026-06-14T07:50:20+00:00

Building an ios app using apache cordova 2.1. Building and styling is going fine

  • 0

Building an ios app using apache cordova 2.1. Building and styling is going fine but maps are not.

I found a plugin for the maps but simply cannot get it to work:
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/MapKit

I also found an example html file but could :
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/MapKitPlug/example

1/
So i added the MapKit framework into xcode which was pretty straight forward:
http://blog.thinketg.com/blog/david-brainer-banker/xcode-4-tips-adding-frameworks-to-your-project

2/
Added the .m and .h files

3/
Added and linked the .js file to my index.html

4/
copied the example html above.

5/
Added the Mapkit to the .plist file as per the instructions

When I try to run the map I get the following errors:

2012-11-05 14:21:29.505 sawdaysApp[25398:c07] Multi-tasking -> Device: YES, App: YES
2012-11-05 14:21:30.895 sawdaysApp[25398:c07] CDVPlugin class MapKitView (pluginName: MapKitView) does not exist.
2012-11-05 14:21:30.895 sawdaysApp[25398:c07] ERROR: Plugin 'MapKitView' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-11-05 14:21:30.896 sawdaysApp[25398:c07] FAILED pluginJSON = [null,"MapKitView","showMap",[]]
2012-11-05 14:21:30.896 sawdaysApp[25398:c07] CDVPlugin class MapKitView (pluginName: MapKitView) does not exist.
2012-11-05 14:21:30.896 sawdaysApp[25398:c07] ERROR: Plugin 'MapKitView' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-11-05 14:21:30.897 sawdaysApp[25398:c07] FAILED pluginJSON = [null,"MapKitView","setMapData",[{"diameter":1000,"offsetTop":25,"lon":-123.104446,"buttonCallback":"cbMapCallback","lat":49.281467999999997,"height":360,"atBottom":true}]]

I assuming that the error is with the MapKitView in the CDVPluggin, but really not sure.

Has anyone had any experience with this and succeeded?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:50:21+00:00Added an answer on June 14, 2026 at 7:50 am

    THIS WORKS. AT LAST 🙂

    1 – Follow this guide to start the app http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html

    2 – Download and add mapkit plugin native files (all of them) in the plugins folder and the .js file in the www folder. https://github.com/phonegap/phonegap-plugins/tree/master/iOS/MapKit.
    Make sure you drage the pluggins folder to the pluggins folder in xcode otherwise the app will not link the files properly.

    3 – Whitelist * to whitelist all the domains and Add the plugin reference on Cordova.plist MapKitView as value and key

    4 – Donwloaded and included into the sawdaysTestApp/pluggins folder JSONKit.h and JSONKit.m https://github.com/johnezang/JSONKit

    5 – Change mapkit.h and .m

    #ifdef CORDOVA_FRAMEWORK
    #import <Cordova/CDVPlugin.h>
    #else
    #import "CDVPlugin.h"
    #endif
    
    to
    
    #import <Cordova/CDVPlugin.h>
    

    and

    change mapkit.m

    from
    
    #ifdef CORDOVA_FRAMEWORK
    // PhoneGap >= 1.2.0
    #import <Cordova/JSONKit.h>
    #else
    // https://github.com/johnezang/JSONKit
    #import "JSONKit.h"
    #endif
    
    
    to
    
        #import "JSONKit.h"
    
    1. Get the example from https://github.com/phonegap/phonegap-plugins/blob/master/iPhone/MapKitPlug/example/index.html. Copy and paste entire example into index.html.

    7 – Change the index.html

    <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
    <script type="text/javascript" charset="utf-8" src="MapKitPlug.js"></script>
    

    to//

    <script type="text/javascript" src="cordova-2.1.0.js"></script>
    <script type="text/javascript" charset="utf-8" src="MapKit.js"></script>
    

    8 – Run the simulator. click the show map button.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an iOS app and I have all the functionality going already so
I am building an app which uses cocos2D. I developed my app using iOS
I'm building an app using Phonegap and I'm using Urban Airship for iOS and
I'm building an iOS app with PhoneGap. I'm using translate3d CSS animations to create
Hi I am building a iOS app using Appcelerator, I have a file app.js
I'm building out an API using tastypie for an iOS app. I can handle
Currently I am building an app using phonegap for the Android and iOS systems.
I am BRAND new to iOS development and am building my first app using
I'm building a view in my iOS app with Xcode. I'm using the interfice
I am building an iOS app using Appcelerator and the build in Facebook API

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.