• 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 set executable/product name by compiler switch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to set executable/product name by compiler switch?


  • Subject: How to set executable/product name by compiler switch?
  • From: Alexander Bokovikov <email@hidden>
  • Date: Fri, 8 Jan 2010 16:11:24 +0500


Hi, All,

I have a compiler variable in my xxxxPrefix.pch like this

#define _CUSTOM_VER_

And I'd like to configure my XCode project in a way, which would allow me to build different executables like MyApp1.app and MyApp2.app depending on this compiler variable presence. In other words, I'd like to get MyApp1.app if I comment this line in .pch and MyApp2.app - if i uncomment this line.

I suppose I need to write some script for my target or even create a new target, but I don't know what to do exactly, as I'm rather new in XCode.

Any help would be appreciated.

Best regards,
Alexander

_______________________________________________
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: How to set executable/product name by compiler switch?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Go Back/Forward - I'm going nuts
  • Next by Date: Re: How to set executable/product name by compiler switch?
  • Previous by thread: Re: Go Back/Forward - I'm going nuts
  • Next by thread: Re: How to set executable/product name by compiler switch?
  • Index(es):
    • Date
    • Thread