链接器命令错误:'ld:找不到架构i386的符号' [英] Linker command error: 'ld: symbol(s) not found for architecture i386'

查看:165
本文介绍了链接器命令错误:'ld:找不到架构i386的符号'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编译时遇到错误。似乎很奇怪。它作为详细视图应用程序工作,但使用单个视图似乎不起作用。
这是错误详情:

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)


推荐答案

尝试以下步骤:


  1. 在XCode中打开您的项目。

  1. 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.

从右侧面板的顶部选择Build Phases。 (这里的其他选项将是Build Settings,Build Rules)

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的符号'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆