• 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
How to use NSLog in an Xcode Framework project's Unit Test Bundle target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use NSLog in an Xcode Framework project's Unit Test Bundle target


  • Subject: How to use NSLog in an Xcode Framework project's Unit Test Bundle target
  • From: Todd Ditchendorf <email@hidden>
  • Date: Sun, 18 Dec 2005 20:43:40 -0600

Dear list,

I'm creating my first Cocoa Framework using Xcode. When I created the project I chose the 'Cocoa Framework' project type.

I have two targets... the Framework target that was setup for me automatically by Xcode, and another 'Cocoa Unit Test Bundle' target that I created myself. I am able to build the framework and run the tests no problem. Both targets seem to work fine.

The only thing is that calling NSLog in either the test case code or in the framework code that gets executed by the test case code does not seem to produce log output anywhere. There's no run log, I don't know if that is because this is a Framework project or because the target I'm running is a Test Case Target.

Can anyone help me figure out how to log messages in this situation? Preferably using NSLog.

I also killed a couple of hours trying to get Log4Cocoa up and running, but although I am familiar with Log4J (and like it) I can't find a single piece of documentation about how to configure Log4Cocoa. Can you use the XML or properties file formats that Log4J offers? Any pointers to Log4Cocoa info would be greatly appreciated.

Thanks,

Todd Ditchendorf
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Re: Cocoa-dev Digest, Vol 2, Issue 1768 (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: How to detect that a directory is a package file
  • Next by Date: NSXMLDocument and Relax NG
  • Previous by thread: Re: Cocoa-dev Digest, Vol 2, Issue 1768
  • Next by thread: NSXMLDocument and Relax NG
  • Index(es):
    • Date
    • Thread