架构 i386 的未定义符号:_OBJC_CLASS_$_SKPSMTPMessage",引用自:错误 [英] Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error

查看:44
本文介绍了架构 i386 的未定义符号:_OBJC_CLASS_$_SKPSMTPMessage",引用自:错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经导入了从后台应用程序发送电子邮件的框架,即 SKPSMTPMessage 框架.有人可以建议为什么显示以下错误

I have imported framework for sending email from application in background i.e. SKPSMTPMessage Framework. Can somebody suggest why below error is shown

Undefined symbols for architecture i386:

"_OBJC_CLASS_$_SKPSMTPMessage", referenced from:
  objc-class-ref in ConfirmController.o

"_kSKPSMTPPartContentTransferEncodingKey", referenced from:
  -[ConfirmController sendEmail] in ConfirmController.o

"_kSKPSMTPPartMessageKey", referenced from:
  -[ConfirmController sendEmail] in ConfirmController.o

"_kSKPSMTPPartContentTypeKey", referenced from:
  -[ConfirmController sendEmail] in ConfirmController.o

ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

取自哪个框架的来源:-

Source from which framework is taken:-

锁定 MFMailComposeViewController 中的字段

更新:

答案:只需将文件夹拖放到项目上,然后单击复制.也就是选中项目复选框和目标复选框.

Answer:Just drag and drop folder over the project and click copy. Thats it select project check box and target check box as well.

推荐答案

如果您的类的 .m 文件未列在构建阶段"选项卡的编译源"步骤下,您可能会收到此类错误目标.通常 Xcode 会为您执行此操作,但有时它会丢失绘图,您需要手动添加 .m 文件.

You can get this type of error if your class' .m file is not listed under the "Compile Sources" step of the "Build Phases" tab of your target. Normally Xcode does this for you, but sometimes it loses the plot and you need to add the .m file manually.

要做到这一点:

TargetSettings -> Build Phases -> Compile Sources -> 添加你的 .m 类 -> Build and Run

TargetSettings -> Build Phases -> Compile Sources -> add your .m class ->Build and Run

这篇关于架构 i386 的未定义符号:_OBJC_CLASS_$_SKPSMTPMessage",引用自:错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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