• 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: NSLog and deployment builds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLog and deployment builds


  • Subject: Re: NSLog and deployment builds
  • From: Larry Fransson <email@hidden>
  • Date: Mon, 31 Jan 2005 06:25:41 -0800


On Jan 30, 2005, at 22:30, James J. Merkel wrote:

Suggestion to the xcode team -- why not have an option in the Deployment build style to not compile NSLog statements?
The statements would still be there in Development builds -- so I wouldn't need to un-comment them again if I wanted to use them again.

There are occasions when you want to leave some NSLog()s in the code - it can be helpful for troubleshooting when something goes wrong. If you want to turn them off for deployment builds, use an #ifdef and define a flag in your development builds like this:


#ifdef DEBUG
	NSLog(@"foo");
#endif

and then put -DDEBUG in "other C flags" for your development build style.

Larry Fransson
Seattle, WA

_______________________________________________
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


  • Follow-Ups:
    • Re: NSLog and deployment builds
      • From: Julian Vrieslander <email@hidden>
References: 
 >NSLog and deployment builds (From: "James J. Merkel" <email@hidden>)

  • Prev by Date: Re: variable question?
  • Next by Date: Re: View mpeg2enc
  • Previous by thread: NSLog and deployment builds
  • Next by thread: Re: NSLog and deployment builds
  • Index(es):
    • Date
    • Thread