• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dynamic Linking Error - Xcode 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

  1. Created a new SFML application (I used project templates provided by SFML, so the project is set up correctly for that library)
  2. Went to the "Targets", selected my application, and added my .dylib file in the "Link Binary With Libraries" section
  3. Created a new "Copy Files" build phase, set it to "Executables", and added the .dylib file
  4. Successfully compiled my project with no errors whatsoever
  5. 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

  • Prev by Date: Re: Copy Files Build Phase error: Framework "not found", but I see it
  • Next by Date: Fwd: Dynamic Linking Error - Xcode 4
  • Previous by thread: Re: Copy Files Build Phase error: Framework "not found", but I see it
  • Next by thread: Fwd: Dynamic Linking Error - Xcode 4
  • Index(es):
    • Date
    • Thread