Skip to content

New Relic cannot be used with Amplitude #339

Open
@richardpineo

Description

Description

When using both New Relic and Amplitude for iOS applications, New Relic throws an exception on startup because of the way Amplitude swizzles some low-lying methods.

This issue is captured in the Amplitude iOS issues here:
amplitude/Amplitude-Swift#86

Steps to Reproduce

Install both NewRelic and Amplitude as dependencies.
When NewRelic is started, an exception is thrown.

Expected Behavior

New Relic and Amplitude can co-exist.

Relevant Logs / Console output

'New Relic detected an unrecognized selector, 'amp_viewDidAppear:', sent to 'UIViewController'. It's possible _cmd was renamed by an unsafe method_exchangeImplementations().'

libc++abi: terminating due to uncaught exception of type NSException

Your Environment

Xcode 16.1

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions