tags:

views:

12

answers:

1

I recently asked about the wisdom of using multiple Xcode projects to separate project components. I have decided to follow this route in my next project.

I attempted to add another project to a master Xcode project by dragging and dropping it into the sidebar. However, when I #import any of the classes that are defined in the added project I am informed that those classes cannot be found.

What do I need to do in order to be able to refer to the classes in other projects in a master project? I was surprised that I found virtually no information on how to do this on the web.

A: 

Project -> Edit Project Settings

Use Header Search Paths

This is a list of paths to folders to be searched by the compiler for included or imported user header files (those headers listed in quotes) when compiling C, Objective-C, C++, or Objective-C++. Paths are delimited by whitespace, so any paths with spaces in them need to be properly quoted. See the description of the "Always Search User Paths" build setting for more details on how this setting is used. If the compiler doesn't support the concept of user headers, then the search paths are prepended to the any existing header search paths defined in "Header Search Paths". [USER_HEADER_SEARCH_PATHS, -iquote]

Aaron Saunders