我在我的項目中使用Reachability來獲取使用的連接類型,但發生了錯誤。iOS中的體系結構問題
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in ContributionViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我不知道該怎麼做......我的項目是針對iOS 4.3的,而我之前從未遇到過這類問題。
Thx
您最近是否更改過任何內容?您的項目中是否包含Reachability.m,並且包含在目標中? – 2012-03-26 14:08:43
是的,我在項目中包含了.m和.h兩個文件,我沒有改變任何內容。 – Vellozo 2012-03-26 14:09:49