• /
  • Log in
  • Free account

Adding a prefix header to an iOS project

Installing New Relic's iOS SDK API requires you to modify your project's prefix header. If your project does not have one, follow these steps to add it.

  1. From your Xcode menu, select File > New > File...

  2. From iOS template options, select Other > PCH file.

  3. Name the file <target_name>-Prefix.pch, and then select Create.

  4. From your target’s Build settings, select All, and then add the following to the Prefix Header field:


Prefix Header file for iOS SDK API projects

Here is an example of using Xcode to add a Prefix Header file to your iOS project for the iOS SDK API.

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.