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?
Asked
Active
Viewed 9,390 times
1 Answers
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.

Martin Wickman
- 19,662
- 12
- 82
- 106
-
and don't set targets for Info-..,plist ! leave them empty – djdance Dec 11 '19 at 19:14
-
@djdance only if we dont need them – CyberMew Nov 10 '20 at 00:59