Re: [SOLVED] xCode 2.2. broke my test target
Re: [SOLVED] xCode 2.2. broke my test target
- Subject: Re: [SOLVED] xCode 2.2. broke my test target
- From: Chris Hanson <email@hidden>
- Date: Fri, 11 Nov 2005 19:03:40 -0800
On Nov 11, 2005, at 4:52 PM, Miguel Arroz wrote:
Ok, I had a .c file that, when changed to .m, fixed the
problem... why? I have no idea. But it works now!
If you look at the build transcript, you can see that the build was
failing when Xcode tried to generate a precompiled version of your
prefix file for the C language. If it's set to precompile the prefix
file, Xcode will (by default) precompile it once per language in your
project.
By default, a new Cocoa unit test bundle target is configured to use
<Cocoa/Cocoa.h> as its prefix. If you want to use a language other
than Objective-C in such a target, you'll need to change the target
to use a prefix file of your own that wraps the #import of any
Objective-C headers in an #ifdef __OBJC__/#endif region.
Changing the prefix file used by a unit test bundle target should be
perfectly safe, since neither the SenTestingKit.framework headers nor
the Objective-C test case class template should rely on having any
particular files included by a prefix file.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden