Is there any way i can integrate New Relic sdk into my iOS project using carthage package manager? I don't want to use cocoa pods to do this since i am already using carthage package manager in my project.
Is there any way i can integrate New Relic sdk into my iOS project using carthage package manager? I don't want to use cocoa pods to do this since i am already using carthage package manager in my project.
To use Carthage there are a few steps. First inside of your Carthage/ Directory add a file called new_relic.json and add this to it:
{
"6.7.0": "https://download.newrelic.com/ios_agent/NewRelic_iOS_Agent_6.7.0.zip"
}
Then in your Cartfile add this line:
binary "./Carthage/new_relic.json" == 6.7.0
Finally run carthage update --platform ios
general tab and add all of these packages to the Linked Frameworks and Libraries section:#import "NewRelicAgent/NewRelic.h"
SCRIPT=`/usr/bin/find "${SRCROOT}" -name newrelic_postbuild.sh | head -n 1`
/bin/sh "${SCRIPT}" "Your token here"
didFinishLaunchingWithOptionsNewRelic.start(withApplicationToken:"Your Token Here")