newrelic / newrelic-ios-agent

New Relic agent SDK for iOS apps
Apache License 2.0
9 stars 6 forks source link

RTLD_DEFAULT on main thread in Xcode 16 #306

Open mortenkleveland opened 2 weeks ago

mortenkleveland commented 2 weeks ago

Description

I get the following warnings on NewRelic.start(:) in Xcode 16:

Skjermbilde 2024-09-18 kl  11 49 29

Steps to Reproduce

Call NewRelic.start(withApplicationToken:_) from Xcode 16

I tried to call .start on a background thread, but that doesn't work.

cdillard-NewRelic commented 2 weeks ago

Thank you for reporting this warning that is occurring with Xcode 16. We've added a JIRA ticket to our JIRA system for investigating and hopefully fixing this. Is this blocking your ability to use the agent with iOS 18? Please feel free to let us know any more detail or contact New Relic Support. Thanks!

mortenkleveland commented 2 weeks ago

Superb, thanks! It seems so far like the agent works fine with iOS 18.

mbruin-NR commented 2 weeks ago

@mortenkleveland In my testing I am not seeing this warning when using Xcode 16. Are you starting the agent in the didFinishLaunchingWithOptions function in the AppDelegate? Are you enabling any special diagnostic tools? Can you think of anything else that could be different in your project or send us a small example app that reproduces the issue?

mortenkleveland commented 2 weeks ago

@mbruin-NR Thanks for looking at it! I am starting the agent in application:didFinishLaunchingWithOptions, yes.

However, that's interesting, I'll try to make a minimal example project and see if it is reproducable and come back to you.