Dynamic Linking Error - Xcode 4
Dynamic Linking Error - Xcode 4
- Subject: Dynamic Linking Error - Xcode 4
- From: Rutvik Choudhary <email@hidden>
- Date: Tue, 07 Aug 2012 15:20:31 -0500
I'm trying to link the Box2D C++ library to my Xcode 4.4 project through the
libBox.2.1.0.dylib file, but for some reason I'm getting runtime-errors. To set up the project, I followed the instructions from
here. Here's everything I did:
- Created a new SFML application (I used project templates provided by SFML, so the project is set up correctly for that library)
- Went to the "Targets", selected my application, and added my .dylib file in the "Link Binary With Libraries" section
- Created a new "Copy Files" build phase, set it to "Executables", and added the .dylib file
- Successfully compiled my project with no errors whatsoever
- Ran the project and got the following runtime-error:
dyld: Library not loaded: libBox2D.2.1.0.dylib
Referenced from: /Users/****/Documents/Xcode Projects/ProjectName/.../ProjectName.app/Contents/MacOS/ProjectName
Reason: image not found
Does anyone know what I missed or what I'm doing wrong?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden