First steps in xCode

Christiaan Hofman cmhofman at gmail.com
Fri May 2 08:24:45 PDT 2008


On 2 May 2008, at 4:54 PM, Andreas Höschler wrote:

> Hi all,
>
>>> How can I convince xCode to create a framework with a Headers  
>>> directory? I have
>>>
>>> Targets
>>> SRTest
>>>  Copy Headers
>>>   Person.h
>>>
>>> in Groups & Files and assumed this would tell xCode to copy to  
>>> create the Headers dir. But this does not seem to be the case. A  
>>> framework without a Headers is absolutely useless. I googled for  
>>> hours but found nothing. I am currently running xCode 3.0 but have  
>>> also already tried newer builds. Nope!
>>
>>
>> Select the "Copy Headers" build phase and look in the Detail View  
>> where you will find the header files listed. Look for the "Role"  
>> column, and make sure to mark all headers that you want to have  
>> copied to the Headers folder as "Public".
>
> In the meanwhile I figured out how to export the headers of a  
> framework. The http://rentzsch.com/share/embeddingFrameworks.mov  
> explains this in greate detail, also how to embed a framework into  
> an application. However, I want to install the Frameworks in / 
> Library/Frameworks so that multiple applications can access them. I  
> opened "Get Info " on the Target and made sure "Installation  
> directory" is set to "/Library/Frameworks". Unfortunately this  
> setting seems to be ignored. The Framework is installed in /Build/ 
> Release instead.
>
> Any idea?
>
> Thanks,
>
>  Andreas


Copied from the Xcode documentation:

Deployment Location (DEPLOYMENT_LOCATION)
Specifies whether the build system places the product in the location  
specified by the DSTROOT and INSTALL_PATH build settings.

Christiaan



More information about the MacOSX-dev mailing list