我已經下載了附在我的郵件中的源代碼。有一個名爲'libiphone-exif.a'的靜態庫,它不起作用&顯示錯誤。於是我下載了該庫從code.google.com &添加它通過「鏈接二進制與圖書館」,但現在我不能建立這個&它顯示了以下錯誤:靜態庫'libiphone-exif.a'的鏈接器命令失敗錯誤
ld: warning: ignoring file /Users/codemenmini2012-2/Downloads/iphone-exif-0-9/Release- iphoneos/libiphone-exif.a, file was built for archive which is not the architecture being linked (i386): /Users/codemenmini2012-2/Downloads/iphone-exif-0-9/Release-iphoneos/libiphone-exif.a
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_EXFGPSLoc", referenced from:
objc-class-ref in PictureViewController.o
"_OBJC_CLASS_$_EXFJpeg", referenced from:
objc-class-ref in PictureViewController.o
"_OBJC_CLASS_$_EXFUtils", referenced from:
objc-class-ref in PictureViewController.o
"_OBJC_CLASS_$_EXFraction", referenced from:
objc-class-ref in PictureViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
文件已被添加多次。 –
請檢查此: - http://stackoverflow.com/questions/10435213/linker-command-failed-with-exit-code-1-use-v-to-see-invocation –
請參閱一次是否導入了'PictureViewController.m '代替'PictureViewController.h' –