• Log inStart now

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:


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

Copyright © 2023 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.