问题描述
我在编译时出错.好像很奇怪.它用作详细视图应用程序,但使用单个视图似乎不起作用.这是错误详细信息:
I have an error at compile time. Seems to be weird. it worked as detail view application, but using single view doesn't seem to work.this is the error details:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_RssArticle", referenced from:
objc-class-ref in RssXmlParser.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
推荐答案
尝试以下步骤:
在 XCode 中打开您的项目.
Open your project in XCode.
在 XCode 的左侧窗口/面板中,单击顶部的项目名称.
In left side window/panel of XCode click on your project name on top.
现在从 XCode 的右侧面板中选择 Target.
Now select Target from right side panel of XCode.
从右侧面板的顶部选择构建阶段.(这里的其他选项是构建设置、构建规则)
Select Build Phases from right panel's top. (here other option will be Build Settings, Build Rules)
在同一个面板中打开编译源",在这里检查:是否列出了所有文件(.m
)?如果不是所有文件,请单击底部的 (+) 符号以添加 (.m
) 不在列表中的文件
In the same panel open the "Compile sources", here check: are all the files (.m
) listed? if not all files click on (+) sign in bottom to add (.m
) files which is not in list
根据您的错误,RssXmlParser 似乎不存在,添加并重新编译
As per your error it seems RssXmlParser not there, add this and compile again
现在可以正常工作了.
这篇关于链接器命令错误:“ld:找不到架构 i386 的符号"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!