External Library Usage in Xcode

Link External Library in Xcode C++ Project

If I understand correctly what you are asking, you simply want to "set" the file chooser dialog at the right place, right?

If so, you just have to press Cmd + Alt + G once you are in the file chooser dialog, after clicking on "Add Other..." in the "Link Binary with Libraries" menu. A "Go to the folder:" dialog comes up, and there you can type the fullpath to the file or the folder you are looking for.

Hope that helped!

External library usage in xcode

make sure about 2 things:

  • select "create groups" not "create folder references"
  • copy items if needed

adding an external library to a project in Xcode 4.3

By default, Xcode searches for headers recursively in the project's own directory. If you're using a static library, you'll need to use the lib's header files which likely reside somewhere else. There are 2 settings in an Xcode project that allow you specify additional paths to search during compilation:

User Header Search Paths

#import "SomeHeader.h"

Header Search Paths

#import <SomeHeader.h>

Depending on which style you intend to use, pick the appropriate setting, and supply the path to the header files you wish to use:

Sample Image

The paths can be recursive, relative to the project (using $(SRCROOT)/), or absolute. You could also use the derrived data directory if you have Xcode set up correctly.



Related Topics



Leave a reply



Submit