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 版本。

提前致谢。

4

1 回答 1

0

可能您的静态库是使用不支持armv7s架构的旧版本 XCode 创建或编译的。打开静态库项目,确保Architectures包含 armv7 和 armv7s 架构并Build Active Architectures Only设置NoBuild Settings.

静态库配置

于 2013-03-13T14:15:39.637 回答