链接器命令失败,退出代码1 - iOS [英] linker command failed with exit code 1 - iOS

查看:187
本文介绍了链接器命令失败,退出代码1 - iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

 架构i386的未定义符号:
_OBJC_CLASS _ $ _ RssArticle从:
objc-class-ref in RssXmlParser.o
ld:没有为架构i386找到符号
clang:error:linker命令失败,退出代码1(使用-v请参阅调用)


解决方案

p>

1-在XCode中打开项目。



2-在XCode的左侧窗口/面板中单击项目



4-现在选择目标从XCode的右侧面板。



从右侧面板的顶部。 (这里其他选项将是构建设置,构建规则)



5-在同一面板中打开编译源代码,这里检查:是所有的文件)上市?如果不是所有文件点击(+)登录底部添加(.m)文件不在列表



6-根据你的错误,似乎RssXmlParser不在那里,添加并再次编译



现在可以正常工作。


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)

解决方案

Try these steps...

1- Open your project in XCode.

2- In left side window/panel of XCode click on your project name on top.

3- Now select Target from right side panel of XCode.

4- Select Build Phases from right panel's top. (here other option will be Build Settings, Build Rules)

5- 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

6- As per your error it seems RssXmlParser not there, add this and compile again

It will work fine now.

这篇关于链接器命令失败,退出代码1 - iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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