• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOLVED] xCode 2.2. broke my test target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >xCode 2.2. broke my test target (From: Miguel Arroz <email@hidden>)
 >[SOLVED] xCode 2.2. broke my test target (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Lipo & PackageMaker Error ?
  • Next by Date: missing function
  • Previous by thread: Re: [SOLVED] xCode 2.2. broke my test target
  • Next by thread: Quotes Removed When Project Opened And Closed
  • Index(es):
    • Date
    • Thread