• 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: Excluding some code when building with development style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Excluding some code when building with development style


  • Subject: Re: Excluding some code when building with development style
  • From: Markus Ruggiero <email@hidden>
  • Date: Tue, 11 May 2004 17:52:53 +0200

First of all I think this is very dangerous. Do you really want to include code in your deployment that you have not used/tested in development????

Anyway. Go to buildstyles and add -DDEPLOYMENT_STYLE_BUILD to your compiler options . Then in code you can use simple C makros to test for it like

#ifdef DEPLOYMENT_STYLE_BUILD
// your code goes here
#endif

I am not currently sitting in front of XCode so do not take my description literally, but I think you should be able to "translate" it.

Have fun
---markus--

At 16:39 Uhr +0200 11.5.2004, Peter Borg wrote:
Hello!

I want to exclude some code when I'm developing my program and only include it when I build it with Deployment Style. The problem is that the code in question gives me a warning when I compile (it is an undocumented method) and it gets to be annoying after a while but I can't really turn the warnings off as they usually need them. I guess what I'm looking for is something like:

#if DEPLOYMENT_STYLE_BUILD
compile this code
#endif

But I can't find the syntax for it and was wondering if any of you know of a good way to do this?

Regards,

Peter
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


--
Markus Ruggiero
rucotec consulting and technologies email mailto:email@hidden
rucotec GmbH web http://www.rucotec.ch
Steinentorstrasse 8 4051 Basel Mobile +41 (0)79 508 4701
Switzerland Phone/Fax +41 (0)61 271 4990
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.



  • Follow-Ups:
    • Re: Excluding some code when building with development style
      • From: Jeremy Dronfield <email@hidden>
References: 
 >Excluding some code when building with development style (From: Peter Borg <email@hidden>)

  • Prev by Date: Re: Excluding some code when building with development style
  • Next by Date: setting a java main class option on build & run
  • Previous by thread: Re: Excluding some code when building with development style
  • Next by thread: Re: Excluding some code when building with development style
  • Index(es):
    • Date
    • Thread