Search code examples
iphoneiosasihttprequestsharekitreachability

ASIHTTPRequest and ShareKit in the same app has two reachability files


I am creating an iOS app which uses both ASIHTTPRequest and ShareKit. Both APIs have a Reachability.h and Reachability.m file... thus this is creating a Mach-O duplication error. Is there a special way to avoid this?

Thanks


Solution

  • I had this issue a little while back and figured out an easy fix.

    You have two options.

    1) If the versions of the two Reachability sets are the same, you could just delete one set. I don't think you should even have to change any headers.

    2) If the versions are different, rename one set of Reachability files something like "MyReachability". Obviously you will have to clean up all references to the renamed class as well.

    Hope that helps!