One of my project needs to provide lite/full version and english/french version. I know that localise and set info.plist/InfoPlist.strings for different luanguange. But if I also hope to set the info.plist for different target version(lite/full). How can I do?
In the Xcode project navigator, select the app target. Switch to the Build Phases tab at the top, then add a New Run Script Phase. Name the phase “Setup Firebase Environment GoogleService-Info. plist”, or something to that effect, and place it before the “Copy Bundle Resources” step.
GoogleService-info plist file is one of a file that you can download when you use third party service such as Firebase. A lot of times, we might forget to download or we could have lost the file. There are a lot of ways to find GoogleService-info.
What's a Plist? A property list, or plist, is an XML file that contains key-value data. It's easiest to compare with a dictionary in Swift, so it's a list of values associated with keys.
When you create a new target Xcode will make a copy of the info.plist
for the new target. In the target build settings you can even change the name of the info.plist
used for that target.
The default name of the info.plist
is something like copy-info.plist
when you rename the file on the file system make sure that you also rename it in the build settings. The build setting key you need to change is Info.plist File
.
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