我試圖學習如何在我的Xcode項目中使用this示例創建和使用靜態庫。然而,我一直geting這個錯誤:將靜態庫添加到某個項目時出錯
ld: warning: ignoring file /Developer/MathTest/iCodeBlogsMathLibrary/libICodeMathUtils.a,
missing required architecture i386 in file
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MathFunctions", referenced from:
objc-class-ref in MathTestViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
我可能會錯過什麼?
我的靜態庫並不在目標相關證明! – NSExplorer 2011-06-12 14:41:08
嗨,我在回答結尾處添加了2條指示。 – sergio 2011-06-12 14:47:51
看到我最新的編輯。 – sergio 2011-06-12 15:12:49