• 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: Defining code based on build target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining code based on build target


  • Subject: Re: Defining code based on build target
  • From: Development <email@hidden>
  • Date: Wed, 18 May 2011 13:47:59 -0700

Never mind I deleted my build directory manually and it worked.

Thank you very much :)


On May 18, 2011, at 1:18 PM, Hank Heijink (Mailinglists) wrote:

> Try #ifdef instead of #if.
>
> On May 18, 2011, at 4:09 PM, Development wrote:
>
>> I have a version of an application that I want to contain different code based on the builded target.
>> for instance I have a lite version. After defining the ISFREE value in the preprocessor macros... I tried using:
>>
>> #if ISFREE
>>
>>   NSLog(@"It's Free");
>>
>>
>> #endif
>>
>>
>> Of course the line never prints.
>> Is it possible to compile specific code based on target_name or using the preprocessor macros? Or am I wasting my time with this?_______________________________________________
>>
>> 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
>>
>

_______________________________________________

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: 
 >Defining code based on build target (From: Development <email@hidden>)
 >Re: Defining code based on build target (From: "Hank Heijink (Mailinglists)" <email@hidden>)

  • Prev by Date: I'm given a project.pbxproj file....
  • Next by Date: Re: I'm given a project.pbxproj file....
  • Previous by thread: Re: Defining code based on build target
  • Next by thread: Re: Defining code based on build target
  • Index(es):
    • Date
    • Thread