philippec / PhFacebook

MacOSX Interface to Facebook graph API
http://developer.casgrain.com/?p=107
Other
178 stars 44 forks source link

dyld: Library not loaded #4

Closed jfemoreau closed 13 years ago

jfemoreau commented 13 years ago

Trying to get this working… followed all the steps to the letter, but something’s breaking when I go to run. Built the framework with no problem. Drug from the Finder into my app, copied. Added to copy phase. Added the appropriate #import statement. Built MyApp with no problem. When I go to run, it fails with: dyld: Library not loaded: @rpath/PhFacebook.framework/Versions/A/PhFacebook Referenced from: /Volumes/WorkingCopies/MyApp/source/trunk/build/Debug/MyApp.app/Contents/MacOS/MyApp Reason: image not found

philippec commented 13 years ago

Looks like you were not building with a common build folder (e.g. $HOME/build).

Can you build and run the included sample app?

Incorporating frameworks can sometimes be a PITA, there seems to be some sacrificial chickens involved...

jfemoreau commented 13 years ago

It worked.

I had tried this before but obviously I'd done something wrong!

Thanks!

J F

muriloadriano commented 11 years ago

Hi, I didn't understand how to fix this error. I did same thing @jfmoreau said he did in the first post and still getting Image not found.

Edit: Nevermind, just had to move the .framework folder to the system Frameworks folder. Sorry.

philippec commented 11 years ago

You want to put the framework in YourApp.app/Contents/Frameworks so it becomes embedded in your app. Check the sample application for more info.