Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an Xcode project with multiple targets have different Settings.bundle's for each target?

Tags:

iphone

I have a settings bundle in an iPhone app which has several subtle variant targets.

The problem is I need to customise some strings in each settings bundle to make them appropriate for each target. It appears that if the Settings bundle is named anything other than Settings.bundle it won't pick up the bundle (understandable, can I specify in a plist somewhere the alternate name?).

If I try and put them in different folders and call them the same thing Xcode gets horribly confused and lets you edit "2 files" that are actually the same single source.

like image 404
andybee Avatar asked Feb 12 '10 17:02

andybee


1 Answers

I see no problem. For every target, create a specific folder with files for this target. Now create a group in Xcode for every of those folders and drag each of the new Settings.bundle directories to the corresponding group. When adding the bundles to the project, make sure that every bundle is only built (included) for its target by checking the appropriate box.

like image 85
MrMage Avatar answered Oct 23 '22 09:10

MrMage