加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – i386架构的未定义符号:“_OBJC_CLASS _ $_ MFMailCompos

发布时间:2020-12-15 01:40:12 所属栏目:百科 来源:网络整理
导读:我使用MFMailComposeViewController在iPhone上创建程序.但是,编译时会发生错误: Undefined symbols for architecture i386: "_OBJC_CLASS_ $_MFMailComposeViewController",Referenced from: objc-class-ref in ViewController.old: symbol (s) not found f
我使用MFMailComposeViewController在iPhone上创建程序.但是,编译时会发生错误:

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

请帮忙,这是什么怎么解决?

提前致谢!

解决方法

您必须向您的项目添加MessageUI.framework框架.

以下是您的操作方法:

>在项目导航器侧栏中选择项目.>单击“构建阶段”选项卡.>展开“使用库链接二进制”部分.>点击”按钮.>从列表中选择“MessageUI.framework”. (您可以使用搜索框找到它).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读