Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add the oomph macmapkit with existing project in xcode 4 #6

Open
sparrowice opened this issue Mar 12, 2012 · 6 comments
Open

Comments

@sparrowice
Copy link

Can anyone help me how to install the oomph macmapkit in xcode 4.

when i run the project it is giving

Unknown class MKMapView in Interface Builder file at path /Users/xlabz/Library/Developer/Xcode/DerivedData/Map-ekevpaputqacdsazsxinnhcucdrz/Build/Products/Debug/Map.app/Contents/Resources/en.lproj/MainMenu.nib.

i coudnt able to install the mapkit.Ibplugin.

Can anyone help to fix this issue

@skndn60
Copy link

skndn60 commented Apr 9, 2012

I had the same problem and after getting lost in Xcode project settings decided to add the sources to my application in stead of installing the framework. Furthermore, my app is compiled with ARC, so had to make adjustments to the source code anyway.

The IB plugin will not work with Xcode version 4.x as it does not support plugins (yet).

MapKit works great now.

@LucasDeVil
Copy link

You need to put the MacMapKit.framework into several parts of the target.

  1. Target -> Build Phases -> Link Binary With Libraries
  2. Target -> Build Phases -> Add Build Phase -> Copy Files (Destination: Frameworks)

This should do the trick.

@powellmark
Copy link

I'm having issues as well, did the following:

  1. Downloaded latest from github
  2. Built framework target.
  3. Added built MapKit.framework to my project under frameworks.
  4. Confirmed the "Link Binary With libraries" phase included MapKit.framework

I then set a default NSView to be MKMapView. Launched and get the following error:

dyld: Library not loaded: @loader_path/../Frameworks/MapKit.framework/Versions/A/MapKit
Referenced from: /Users/powellmark/Library/Developer/Xcode/DerivedData/TestMapKit-gmqecdwiucdngafwvutscpqyndqw/Build/Products/Debug/StuckOnEarthMac.app/Contents/MacOS/TestMapKit
Reason: image not found

I then saw LucasDeVil's comment about the Copy Files phase. But Not sure which files to copy. I don't know which image is not found from the error.

@LucasDeVil
Copy link

You need to drag the MapKit framework from the Project Explorer pane to the Copy Files phase.
As the error mentioned MapKit.framework is not found since it wasn't copied.

@powellmark
Copy link

Ah, clears it up. I tried adding it via hitting the '+' button but it wasn't appearing. Dragging put it in place. Thank you very much.

@GabrielUlici
Copy link

I`m getting this error, how can I fix it? I did all the steps above and it even copies the files inside my app bundle, but it searches in the wrong path.

dyld: Library not loaded: /Library/Frameworks/MapKit.framework/Versions/A/MapKit Referenced from: /Users/gabe/Library/Developer/Xcode/DerivedData/Jarvis-fwsahhuernjyetgcttmpgovkiqlz/Build/Products/Debug/Jarvis.app/Contents/MacOS/Jarvis Reason: image not found

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants