错误使用来自苹果示例的Mailcomposer的代码 [英] error using the code from Mailcomposer from apple sample

查看:118
本文介绍了错误使用来自苹果示例的Mailcomposer的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Apple的MailComposer代码,但是当我尝试运行我的应用程序时,我收到一条错误消息,我无法构建我的应用程序。

I using the code from Apple for MailComposer but when I try to run my app i get a error message and I can't build my app.

错误我得到:


架构i386的未定义符号:
_OBJC_CLASS _ $ _ MFMailComposeViewController,引用:
objc -class-ref在InfoMailComposerViewController.o
ld:未找到体系结构的符号i386
collect2:ld返回1退出状态

Undefined symbols for architecture i386: "_OBJC_CLASS_$_MFMailComposeViewController", referenced from: objc-class-ref in InfoMailComposerViewController.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status

知道任何人这是什么意思?

Know anybody what this means??

提前感谢

推荐答案

您必须在项目中包含 MessageUI.framework

如果您是使用Xcode 4:

If you are using Xcode 4:


  1. 选择项目,然后突出显示您的活动目标。

  2. 选择Build阶段选项卡

  3. 展开使用库链接二进制

  4. 点击+按钮

  5. 选择MessageUI.f影子

  1. Select the Project then highlight your active Target.
  2. Select the "Build Phases" Tab
  3. Expand "Link Binary With Libraries"
  4. Hit the '+' button
  5. Select MessageUI.framework

这篇关于错误使用来自苹果示例的Mailcomposer的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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