Skip to content

Instantly share code, notes, and snippets.

@micahpearlman
Created February 13, 2012 19:08
Show Gist options
  • Save micahpearlman/1819124 to your computer and use it in GitHub Desktop.
Save micahpearlman/1819124 to your computer and use it in GitHub Desktop.
Adding the static library’s headers in Xcode 4 worksspace

== Adding the static library’s headers ==

We also need to make sure that our app’s build target can locate the public headers used in this static library. Open the “Build Settings” tab and locate the “User Header Search Paths” setting. Set this to “$(BUILT_PRODUCTS_DIR)” (or “$(BUILT_PRODUCTS_DIR)/static_library_name” if we want to be more specific but then we’ll have to update this setting every time we add another library) and check the “Recursive” check box. Now our built target will search our workspace’s shared build directory to locate linkable header files.

** ALSO SET THE HEADERS TO PUBLIC!!! **

see: http://blog.carbonfive.com/2011/04/04/using-open-source-static-libraries-in-xcode-4/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment