• 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 a XIB from project depending on configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Excluding a XIB from project depending on configuration


  • Subject: Re: Excluding a XIB from project depending on configuration
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 21 Jan 2013 22:34:51 -0800

On Jan 21, 2013, at 22:15 , Oleg Krupnov <email@hidden> wrote:

> I have a XIB file with some debugging & tweaking window which is only
> needed in the Debug configuration of my project. I can exclude the
> debug code with some #ifdefs, but I would like also to exclude the XIB
> from the release build. Is there a way in Xcode to achieve this?

You could add a script phase after the copy resources phase of the target. Something like:

	cd "$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH"
	rm -fv */MyWindow.nib

(assuming the nib is localized), and check "Run script only when installing".

This doesn't exactly keep the nib file out of the release build. Rather, it keeps it out of the archive build, which is the fully-processed app you presumably generate to distribute.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Excluding a XIB from project depending on configuration (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: Excluding a XIB from project depending on configuration
  • Next by Date: Re: Printing a view + landscape printing
  • Previous by thread: Excluding a XIB from project depending on configuration
  • Next by thread: Re: NSPointerArray on iOS - truly __weak?
  • Index(es):
    • Date
    • Thread