Customizing Your info.plist File
Go Up to Preparing a macOS Application for Deployment
Go Up to Preparing an iOS Application for Deployment
RAD Studio writes some options of your applications for macOS or iOS to a file, *.info.plist, which is included in your final application package when you deploy your application to macOS or iOS. This file defines things such as the version code or display name of your application, the list of capabilities that your application requires, and so on.
Usually, you do not need to touch this file, and you can let RAD Studio take care of everything for you. However, RAD Studio allows you to customize the content of the *.info.plist
file if you need to include custom data in this file that you cannot define visually in your project options.
When you deploy an application to the macOS or iOS target platforms for the first time, RAD Studio adds a file to your project folder: info.plist.TemplateOSX.xml
or info.plist.TemplateiOS.xml
. Whenever you deploy your application to macOS or iOS, RAD Studio reads the corresponding file, replaces some placeholders in the file with actual values from your project options, and writes the resulting content into an output file: <platform>\<build configuration>\*.info.plist
. This output file is the *.info.plist
file that is included in the application package that RAD Studio generates when you deploy your application to the macOS or iOS target platforms.
To customize the output *.info.plist
file of a single project, edit the content of info.plist.TemplateOSX.xml
or info.plist.TemplateiOS.xml
in the project folder.
The template files that RAD Studio adds to a project when you deploy that project to the macOS or iOS target platforms for the first time comes from the corresponding file in C:\Users\<username>\AppData\Roaming\Embarcadero\BDS\23.0
. If you want your new projects to have a different starting template file, edit this file.
Contents
Re-creating the info.plist
Template Files
The info.plist
template file that RAD Studio generates can change from one version of RAD Studio to another. To deploy a project that was originally deployed with a different version of RAD Studio, be especially careful with the existing info.plist
template files from your project folder.
There are two possible scenarios:
- You want to keep the old
info.plist
template files because they are customized. - You do not need to keep the old
info.plist
template files.
Keeping the info.plist
Template Files
You might want to keep your info.plist
template files if you manually did modifications to them. In this case, you need to follow these steps:
- Open your project folder.
- Be sure to back up your
info.plist
template files. - Delete the
info.plist
template files from the project folder. - Open your project with the new version of RAD Studio.
- For each affected target platform (macOS 64-bit, macOS ARM 64-bit, and iOS Device 64-bit :
- Select the target platform node on the Projects Window.
- Deploy your project to the selected target platform.
- Note: Deploying your project creates a new
info.plist
template file for the selected target platform.
- Go to your project folder to check that there is a new
info.plist
template file. - Manually add your changes to the new
info.plist
template file.
Creating a New info.plist
Template Files
If you did not modify the info.plist
template files, follow these steps to let RAD Studio create new files:
- Open your project folder.
- Delete the
info.plist
template files, if they exist. - Open your project with the new RAD Studio version.
- For each affected target platform (macOS 64-bit, macOS ARM 64-bit, and iOS Device 64-bit):
- Select the target platform node on the Projects Window.
- Deploy your project to the selected target platform.
- Note: Deploying your project creates a new
info.plist
template file for the selected target platform.
- Go to your project folder to check that there is a new
info.plist
template file.
Contents of the info.plist
Template Files
The info.plist
template files contain two placeholders that RAD Studio replaces by key-value pairs during the deploying applications overview. The following value indicates which info.plist
keywords replace each placeholder:
Placeholder | Replacement Content | |
---|---|---|
|
| |
|
|