Xcode - How to make it use different plist file for same code base, different targets
Asked Answered
H

1

8

I have a code base that I need to build out to two different targets. The only difference is they read different config.plists, config-1.plist for target #1 and config-2.plist for target #2. What do I need to do in the building to achieve this?

Helbonnas answered 15/4, 2011 at 21:13 Comment(0)
B
16

Like this:

  • Select your project from the navigator to the left
  • Select the target you want to change (under TARGETS)
  • Click "Build Settings"
  • Search for "Info.plist"

In the Packaging section, you should see a setting called Info.plist file.

  • Change that to you "config-2.plist" or whatever you want.

You also need to create the two plist-files of course.

Birdwell answered 26/7, 2011 at 14:33 Comment(2)
and don't set targets for Info-..,plist ! leave them emptyPythagoreanism
@Pythagoreanism only if we dont need themLinguistics

© 2022 - 2024 — McMap. All rights reserved.