iphone - How to make a 'Pro' version of an Xcode project -
i have made app , i'm planning make 'pro' version of it, want copy xcode project , rename it.
i wondering easiest way go doing this. there lot of different references name throughout project , don't want spend ages searching through, updating them all.
please can suggest easiest steps take in order copy 'app basic' 'app pro'? or there better/preferred method create 'pro' version of app subtle differences?
thanks in advance!
the best way create second target in same xcode project. can define 2 preprocessor macros (e.g.: app_version_lite
& app_version_pro
) , compile time switching using #ifdef app_version_pro
etc.
in app delegate can define string application name
//.pch extern nssting * const myappname //appdelegate.m #ifdef app_version_pro nssting * const myappname = @"app pro"; #else nssting * const myappname = @"app lite"; #endif
you can include files (including resources , classes) in 1 of 2 targets.
Comments
Post a Comment