First steps in xCode
Andreas Höschler
ahoesch at smartsoft.de
Wed Apr 30 09:47:06 PDT 2008
Hello all,
I am an old OPENSTEP developer and have been working with
ProjectBuidlerWO.app on MacOSX 10.2.8 until now. We needed to upgrade
to 10.5.X now for several reasons, so it's time to get our hands dirty
with xCode. I am trying to create a simple framework SRTest exporting a
class Person with only one method
+ (void)print
{
NSLog(@"Hello World!");
}
and call that from main.m of a cocoa tool linking to that framework. I
spent hours on this simple first step and and tearing my hairs out. The
framework project builds successfully and put a SRTest.framework into
/Build/Release. However, this framework does not contain a Headers
directory. So it's clear that building TestTool fails with
error: SRTest/Person.h: No such file or directory
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!
Hints are greatly appreciated!
Thanks a lot!
Regards,
Andreas
More information about the MacOSX-dev
mailing list