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

前端 未结 2 1641
一生所求
一生所求 2021-01-01 19:30

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 t

相关标签:
2条回答
  • 2021-01-01 20:06

    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.

    0 讨论(0)
  • 2021-01-01 20:07

    AFter you do what MrMage said which is correct.. i had an issue where the Root.plist would not show up under the Settings.Bundle for a specific target.

    You have to let xcode know what the setting.bundle file is... click on the settings.bundle that wont show the Root.plist, then go to file inspector

    Alter the file Type drop down to be applicationBundle ... now the Root.plist shows up.

    0 讨论(0)
提交回复
热议问题