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?
In the Project tool window, right-click the file and select Manage Targets. In the Manage Targets dialog, choose the required targets from the list and click OK.
From XCode 11 onwards, the updated path for Info. plist has to be changed under Target -> Build Settings -> Packaging -> Info. plist File. Save this answer.
Open Xcode, then right-click on Runner directory and select Add Files to "Runner" . Select GoogleService-Info. plist from the file manager. A dialog will show up and ask you to select the targets, select the Runner target.
Like this:
In the Packaging section, you should see a setting called Info.plist file.
You also need to create the two plist-files of course.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With