Info.plist file
When you use Dynatrace, the Info.plist
file stores your app identification and configuration keys. Below is some information on this file.
-
The
Info.plist
file is available in the Xcode project navigator under Supporting Files. For older project files,Info.plist
is located under Resources. -
Regardless of the selected approach to setting up RUM for your app, add your app identification keys (app ID and beacon URL) to your project's
Info.plist
file; theDTXApplicationID
andDTXBeaconURL
keys are always required. Without the app identification keys, your mobile app won't be able to send monitoring data to Dynatrace.To check your app identification keys, access the mobile instrumentation wizard.
-
You can also use
Info.plist
to enable or disable additional monitoring features by adding configuration keys to this file. -
To keep your app's
Info.plist
file clean, you can move all OneAgent-relatedDTX
keys to aDynatrace.plist
file and addDynatrace.plist
to theCopy Bundle Resources
build phase. TheDynatrace.plist
file must be located at the root of your resources bundle, so create this file in the same location as theInfo.plist
file. -
In some instances, no
Info.plist
file is generated when you use Xcode. For example, when you create a new SwiftUI project, you might notice the project doesn't have this file. See Xcode Release Notes; issue 68254857 for more details.If you don't have the
Info.plist
file, add your app identification keys and configuration keys manually as Custom iOS Target Properties to the Info tab of your application target. Once you make that change, Xcode adds theInfo.plist
file to the project, but it's still better to update the configuration via the Info tab of your application target.