MFMailComposeViewController没有为arm64编译

时间:2015-10-28 00:28:35

标签: ios objective-c arm64

我正在尝试迁移旧的应用程序以64位编译并遇到问题。

我收到以下错误:

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

我正在使用MFMailComposeViewController从Iphone发送电子邮件

我有

#import <MessageUI/MFMailComposeViewController.h>
标题中的

    MFMailComposeViewController *picker = nil;
    if([MFMailComposeViewController canSendMail])
    {
        picker = [[MFMailComposeViewController alloc] init];
    }

然后我使用选择器发送电子邮件。

项目中包含MessageUI.framework 如果我在armv7和armv7s上编译但在arm64

上编译,这工作正常

感谢您的帮助

0 个答案:

没有答案