multiple targets building

link
stackoverflow.com 233

Create New Target

  1. select project target
  2. right click
  3. Duplicate

#Rename Target,Scheme And Product

  1. Manage Schemes
  2. select target , slow click or return key
  3. scheme , stackoverflow.com 233
  4. build target, in Edit Scheme... Build tab if there are multiple targets, remove useless targets with unchecking all checkboxes and delete them
  5. Build Setting change Product Name from xxx copy to newName

#Info.plist
rename info.plist ,in Build Settings General tag select new plist file

#Preprocessor
Select “Awesome Lite” target > Build Settings > Preprocessing > Preprocessor Macros > Add TARGET_LITE to each of the configuration (eg both Debug and Release configurations).

1
2
3
4
5
#if defined(TARGET_LITE)
NSLog(@"Lite version");
#else
NSLog(@"Original version");
#endif

#Resources, Images and Assets Catalog
Select the resource > File Inspector > Target Membership > check the targets intended.