我創建了一個靜態庫與Xcode我編譯選擇一個設備。iOS靜態庫XCode(鏈接錯誤)
我在Xcode將此添加到我的媒體庫測試項目4.6
但在鏈接過程中,我總是有2個錯誤...
我跟着這個教程:Static Library iOS Tutorial
如果我下載的樣本代碼我有同樣的錯誤..
ld: warning: ignoring file /Users/Downloads/ICodeBlogStaticLibrarySample/MathTest/Classes/iCodeBlogsMathLibrary/libICodeMathUtils.a, missing required architecture i386 in file /Users/Downloads/ICodeBlogStaticLibrarySample/MathTest/Classes/iCodeBlogsMathLibrary/libICodeMathUtils.a (2 slices)
爲i386硬件架構未定義的符號: 「_OBJC_CLASS_ $ _MathFunctions「,引用來自: MathTestAppDelegate.o中的objc-class-ref 未找到架構i386的ld:symbol(s) clang:錯誤:linker命令失敗,退出代碼1(使用-v查看調用)
哪個錯誤?因爲「鏈接期間出現2次錯誤」根本沒有提供信息。 – Jack
兩個錯誤。 1.缺少';'和2.解決第一個錯誤。 –
只是一個同情的記錄:靜態庫吸入Xcode。 –