我已经下载了附在我的邮件中的源代码。有一个名为'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' –