Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

info.plist for different target version

Tags:

ios

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?

like image 931
arachide Avatar asked Mar 28 '13 09:03

arachide


People also ask

How do I add two GoogleService-info plist in XCode?

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.

What is Google services info plist?

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 is plist Swift?

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.


1 Answers

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.

like image 191
rckoenes Avatar answered Oct 12 '22 16:10

rckoenes