Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone - Using Reachability throwing duplicate symbol _OBJC_IVAR error

I have added the Apple Reachability files to my project and I am already getting errors. I have NOT even added these files to any of my classes, only added them to my project. How could I already be getting this error?

When compiling I get the following error:

ld: duplicate symbol _OBJC_IVAR_$_Reachability.localWiFiRef in /Users/webmaster/Dropbox/iPhone-Development/Official-Projects/PUC/build/PUC.build/Debug-iphonesimulator/PUC.build/Objects-normal/i386/Reachability-B40F6D608A62C635.o and /Users/webmaster/Dropbox/iPhone-Development/Official-Projects/PUC/build/PUC.build/Debug-iphonesimulator/PUC.build/Objects-normal/i386/Reachability-823B59DA9A9B0D23.o
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

Note: I am using the Three20 project, so I am not sure if it could be conflicting somehow?

like image 450
Nic Hubbard Avatar asked Feb 03 '11 18:02

Nic Hubbard


1 Answers

So, I figured it out. I realized that since I am using ShareKit, it also includes Reachability, so it WAS in my project twice, I just didn't realize it.

like image 169
Nic Hubbard Avatar answered Oct 30 '22 05:10

Nic Hubbard