question

kasperw avatar image
kasperw asked

Amazon Insights linker error _kReachabilityChangedNotification

The Amazon Insights SDK includes a version of Reachability. I am already using Reachability in my project. When including the framework this upsets the linker and I get the following error: duplicate symbol _kReachabilityChangedNotification in ... Objects-normal/i386/Reachability.o ... AmazonInsights/AmazonInsightsSDK.framework/AmazonInsightsSDK(Reachability.o) I can't delete the existing Reachability and I can't delete the one in the SDK. What do i do?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kasperw avatar image
kasperw answered
I should mention I'm on iOS
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kasperw avatar image
kasperw answered
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DougM@Amazon avatar image
DougM@Amazon answered
Hello kasperw, Thank you for pointing that out for us, and for the StackOverflow post. We are working on a fix for this problem in a future release of the Insights SDK. Unfortunately if you are working with two static libraries that both use Reachability as opposed to having your own implementation of the Reachability class, then your options are more limited in how you can deal with the issue, as Renaming the reachability class in code is not an option prior to build time. It looks like unfortunately your best option would to turn off the -all_load flag and use the -force_load as required per library in your Xcode project until we update the Insights SDK.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.