简体   繁体   中英

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

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM