当我构建我的旧版本应用程序iOS4.3时,我会收到以下警告
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_SSSwitch", referenced from:
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_SSHUDView", referenced from:
objc-class-ref in ContractorInfoViewController.o
objc-class-ref in ContractorListViewController.o
objc-class-ref in EvenementBilleterieViewController.o
objc-class-ref in EvenementCoupDeCoeurViewController.o
objc-class-ref in EvenementRequestViewController.o
objc-class-ref in GourmetCoupDeCoeurViewController.o
objc-class-ref in GourmetRequestViewController.o
...
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)请帮帮我
发布于 2012-10-29 03:20:56
链接器错误通常意味着您正在尝试访问未链接到的库或类似库中的代码。在您的示例中,它看起来像是访问了某种SS库,但没有链接到它。确保已将任何潜在的库添加到项目中,方法是在文件导航器中选择项目,然后选择:
Target -> Build Phases -> Link binary with libraries希望能有所帮助。
发布于 2014-02-28 23:59:14
从valid architectures部分中删除armv7s,它就会正常工作。
生成设置-->体系结构-->有效体系结构

发布于 2013-08-19 02:23:57
无论何时发生这种情况,进入有问题的类的.m并在错误中指定的类上单击CMD +。这将使您进入您需要添加的库的标题。现在,您将知道缺少什么库,可以将其添加到项目中。
https://stackoverflow.com/questions/13112122
复制相似问题