2013-03-13 66 views
0

我創建了一些類文件的靜態庫和庫建立好,但如果我安裝到庫到另一個新的Xcode項目它顯示錯誤,且錯誤如下,靜態庫的問題

ld: warning: ignoring file /Users/rajesh/Desktop/Quntiles/01-03-2013/ConnectionExample-1/libAVTEmployee.a, file was built for archive which is not the architecture being linked (armv7s): /Users/rajesh/Desktop/Quntiles/01-03-2013/ConnectionExample-1/libAVTEmployee.a 
Undefined symbols for architecture armv7s: 
    "_OBJC_CLASS_$_AVTEmployee", referenced from: 
     objc-class-ref in XMLParser-E51A1142A3EEED70.o 
ld: symbol(s) not found for architecture armv7s 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

任何人都可以幫助我,我該如何解決這個問題,以便我可以在我的新項目中使用我的靜態庫,

我正在使用Xcode 4.6版本。

在此先感謝。

回答

0

很可能您的靜態庫是使用不支持armv7s體系結構的舊版XCode創建或編譯的。打開靜態庫項目並確保Architectures包含armv7和armv7s體系結構,並且Build Active Architectures Only設置爲NoBuild Settings下。

static library configuration