架构i386的未定义符号:_OBJC_CLASS _ $ _ SKPSMTPMessage“,引用自:error [英] Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error
问题描述
我已导入框架,用于在后台从应用程序发送电子邮件,即 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.
推荐答案
你可以得到这种类型的错误if您的类'.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 - >构建阶段 - >编译源 - >添加.m类 - >构建并运行
TargetSettings -> Build Phases -> Compile Sources -> add your .m class ->Build and Run
这篇关于架构i386的未定义符号:_OBJC_CLASS _ $ _ SKPSMTPMessage“,引用自:error的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!