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?
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 :)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With