Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyld not loaded problem xcode 4

I dragged skype fromwork into my frameworks folder and then imported <Skype/Skype.h>. When I run, it gives me this error:

dyld: Library not loaded: @executable_path/../Frameworks/Skype.framework/Versions/A/Skype
  Referenced from: /Users/test/Library/Developer/Xcode/DerivedData/TEST-edktdfqvxhqmfpfqrdqrmjojnfly/Build/Products/Debug/TEST.app/Contents/MacOS/TEST
  Reason: image not found
like image 722
user635064 Avatar asked Jun 26 '11 17:06

user635064


1 Answers

Try setting the "Library Search Path" build settings for your project.

In Xcode 4.x:

You need to drag the .framework from the Project navigator to the Copy Files build phase.

In Xcode 3.2.x:

  1. Choose Project > New Build Phase > New Copy Files Build Phase

  2. In the Destination drop down box select Frameworks

  3. Close the Copy Files Phase Info window to return to the Xcode main window

  4. In the Groups & Files pane expand Targets > YourApplicationExectuable, where you should now see a Copy Files entry

  5. Still in Groups & Files pane drag your framework into the Copy Files entry

  6. Recompile

If you don't do this, the framework will not be actually copied into your application bundle, so it will not be found when your app tries loading it into memory.

like image 60
sergio Avatar answered Oct 23 '22 17:10

sergio