views:

1210

answers:

2

I'm trying to build a framework for MacOS in Xcode 3. It looks like it's building everything except the Headers directory according to the layout listed in the Apple documentation. I can't find anything that tells me what settings to use to get the build process to copy the headers into Headers directory in the framework, or alternately where I have to put those files.

Any help?

Thanks.

+3  A: 

The headers need to be made "public" instead of the default "project" in the framework target (select the framework target in the Files & Groups pane to list the framework files).

Barry Wark
Thanks. That answered the question that I asked. But for some reason, the application project isn't able to find the .h file. I've got #import <imSimReal/imSimReal.h> but it's not being found. I've gotten the framework added to the project frameworks, added the path to the framework into the header search paths, but no joy...
john146
Is the framework also added to the target's "Link Binary With Libraries" build phase? If the framework is added to the target's link binary with libraries phase, the header search paths should be configured automatically.
Barry Wark
Thanks. I got the framework working.
john146
How do I make the headers "public" ? Can't seem to find the option in XCode 3.2.3
adib
Select the framework's target in the "Targets" group. In the file listing for the target, there's a "Public|Private" popup for each header.
Barry Wark
A: 

You want to add the path to the framework to the framework search path, not the header search path.

cdespinosa