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; the DTXApplicationID and DTXBeaconURL 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-related DTX keys to a Dynatrace.plist file and add Dynatrace.plist to the Copy Bundle Resources build phase. The Dynatrace.plist file must be located at the root of your resources bundle, so create this file in the same location as the Info.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 the Info.plist file to the project, but it's still better to update the configuration via the Info tab of your application target.