我已經加入了蘋果可達文件到我的項目,我已經收到錯誤。我甚至沒有將這些文件添加到我的任何類中,只將它們添加到我的項目中。我怎麼可能已經得到這個錯誤?iPhone - 使用可達投擲重複的符號_OBJC_IVAR錯誤
當編譯我收到以下錯誤:
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
注:我使用的是Three20項目,所以我不知道它是否能以某種方式相沖突?
我這樣做,我只是沒有發佈在這裏。所以,即使在我的課程中沒有包含任何可達性文件時,我仍然看到這個錯誤... – 2011-02-03 18:28:27
「Reachability.h」是否導入其他地方? – fsaint 2011-02-03 18:29:38