Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ More to come!
npm install react-native-newrelic --save
```
## iOS
#### 1. Install New RelicAgent in your project as a pod
#### 1. Install New RelicAgent in your project
##### Option 1 (Using Cocoapods):
In the Podfile for your project, add the following line:
`pod 'NewRelicAgent'`
Make sure Xcode is closed and run: `pod install`

or

##### Option 2 (Link it [manually](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-ios/installation/ios-manual-installation#configuration))

#### 2. Add the project to Xcode
In the project navigator:
- Right click Libraries
Expand Down
4 changes: 2 additions & 2 deletions ios/RNNewRelic.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
7B3424411CCF990C00FEBAEC /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = "";
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../../../ios/Frameworks";
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../../react-native/React/**",
Expand All @@ -231,7 +231,7 @@
7B3424421CCF990C00FEBAEC /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = "";
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../../../ios/Frameworks";
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../../react-native/React/**",
Expand Down