架构i386的未定义符号:“_ OBJC_CLASS _ $ _ MFMailComposeViewController” [英] Undefined symbols for architecture i386: "_OBJC_CLASS_$_MFMailComposeViewController"
本文介绍了架构i386的未定义符号:“_ OBJC_CLASS _ $ _ MFMailComposeViewController”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用MFMailComposeViewController训练为iPhone创建程序。但是,编译时会发生错误:
I train in the creation of programs for the iPhone using MFMailComposeViewController. However, an error occurs when compiling:
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)
请帮忙,这是什么?以及如何修复它?
Please help, what is it? And how to fix it?
提前致谢!
推荐答案
您必须将MessageUI.framework框架添加到项目中。
You must add the MessageUI.framework framework to you project.
以下是您的工作方式:
- 在项目导航器侧栏中选择项目。
- 单击Build Phases选项卡。
- 展开Link Binary使用库部分。
- 单击+按钮。
- 从列表中选择MessageUI.framework。 (您可以使用搜索框找到它。)
- Select the project in the project navigator sidebar.
- Click on the "Build Phases" tab.
- Expand the "Link Binary With Libraries" section.
- Click the '+' button.
- Choose 'MessageUI.framework' from the list. (You can use the search box to find it).
这篇关于架构i386的未定义符号:“_ OBJC_CLASS _ $ _ MFMailComposeViewController”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文