我正在尝试迁移旧的应用程序以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
上编译,这工作正常感谢您的帮助