5 Replies Latest reply: Sep 19, 2013 1:04 AM by yannick.compernol RSS

Set wt_dc_dcsid in code rather than plist on iOS

Sven Resch Newbie

Hi,

 

I am manually setting wt_dc_dcsid differently in the plist file depending on if I am doing a Debug/Adhoc or a Release build.

 

Is it possible to set this in code so that I can automate the setting (I'm worrried I'll forget to make the change in a release build one day).

 

The project can be setup with -DRELEASE as an "Other C Flag" but can I effectively override the wt_dc_dcsid value picked up from the plist with something else using an API call?

 

Thanks,

Sven

 

#ifdef RELEASE

// set WebTrends with a Production DCSID value...

#else

// set WebTrends with a Test DCSID value...

#endif