简体   繁体   English

另一个“找不到体系结构i386的符号”错误-XMPPFramework

[英]Another “Symbol(s) not found for architecture i386” Error - XMPPFramework

I just added XMPPFramework to my existing Xcode project. 我刚刚将XMPPFramework添加到我现有的Xcode项目中。

I think I have done all the required things to build it, but when I try to build, I get linker errors as followings : 我认为我已经完成了构建它的所有必需的操作,但是当我尝试构建时,出现如下链接错误:

  "_OBJC_CLASS_$_CLLocation", referenced from:
      objc-class-ref in XMPPvCardTemp.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have read similar questions and I know it usually occurs because of not linking a required library or framework with the binary, but I have checked everything I knew that is required ( I also done everything on the documentation : https://github.com/robbiehanson/XMPPFramework/wiki/GettingStarted_iOS ) 我已经读过类似的问题,并且我知道它通常是由于没有将所需的库或框架与二进制文件链接而发生的,但是我已经检查了我所知道的所有内容(我还在文档上做了所有操作: https : //github.com / robbiehanson / XMPPFramework / wiki / GettingStarted_iOS

But dependencies and frameworks seem to be linked correctly: 但是依赖项和框架似乎可以正确链接:

构架

I'm also sure about the fact that I have added XMPPvCardTemp.m to the list of Compile Sources : 我也确信将XMPPvCardTemp.m添加到了Compile Sources列表中:

编译源

and I'm also sure that I have added it to my target : 并且我还确定我已将其添加到目标中:

目标会员

But I still get this error. 但是我仍然会收到此错误。 Any suggestions ? 有什么建议么 ?

From the screen shot of the error it seems like you did not add core location framework . 从错误的屏幕截图来看,您似乎没有添加核心位置框架。 Recheck May be you have missed it. 重新检查可能是您错过了。

Also I see that you are trying to run it on simulator. 我还看到您正在尝试在模拟器上运行它。 I have seen some frameworks which could be run only on devices 我已经看到一些只能在设备上运行的框架

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM