错误使用来自苹果示例的Mailcomposer的代码 [英] error using the code from Mailcomposer from apple sample
问题描述
我使用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:
- 选择项目,然后突出显示您的活动目标。
- 选择Build阶段选项卡
- 展开使用库链接二进制
- 点击+按钮
- 选择MessageUI.f影子
- Select the Project then highlight your active Target.
- Select the "Build Phases" Tab
- Expand "Link Binary With Libraries"
- Hit the '+' button
- Select MessageUI.framework
这篇关于错误使用来自苹果示例的Mailcomposer的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!