Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New relic installation error: Our installation process has changed, please see https:

I had a new relic in project and it was work fine.
I want to update NewRelic and I first removed old framework (show in finder > delete > and delete from xCode project).
Then I copied new New Relic to framework folder but after I clean and build project I get error:

Our installation process has changed, please see https://docs.newrelic.com/docs/mobile-apps/ios-1-upgrade

I have tried again and again but always get this error.
What I am doing wrong?

like image 319
1110 Avatar asked Jan 28 '14 08:01

1110


2 Answers

I had the exact same issue for a while, even though I followed every step, and then I discovered this:

In -Prefix.pch I used

#import <NewRelicAgent/NewRelicAgent.h>

While I should've used the new (not appearing in auto-complete):

#import <NewRelicAgent/NewRelic.h>

Hope it helps someone :)

like image 52
o.shnn Avatar answered Nov 16 '22 01:11

o.shnn


The most likely cause is that you didn't add all of the required configuration for New Relic as listed here: https://docs.newrelic.com/docs/mobile-apps/ios-installation-and-configuration#configuration

Add to your build phases:

CoreTelephony.framework

SystemConfiguration.framework

libz.dylib

In your [app_name]-Prefix.pch project file (generally found in the "Supporting Files" folder) include the New Relic header: #import <NewRelicAgent/NewRelic.h>

In your AppDelegate.m file add this call as the first line of application:didFinishLaunchingWithOptions: [NewRelicAgent startWithApplicationToken:@"<your app token>"];

Clean and build your build folder, by holding down 'option' and going to the 'product' drop-down in Xcode. (See the screenshot here)

If it's still not working, you'll probably need to get in touch with New Relic at support.newrelic.com

like image 41
Nočnica Avatar answered Nov 16 '22 01:11

Nočnica