1

我正在尝试实现 InAppSettingKit 并收到此错误:

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

InAppSettingKit 用于在应用程序内部集成设置。

我导入的代码有一些ARC问题,所以我只是为我导入的每个文件禁用了ARC。但现在我收到了这个错误。

我没有任何名为MFMailComposeViewController的文件,那么如何将它包含在Compile Sources中?

我是iOS新手,所以如果有人能解释在应用程序中集成设置的步骤,将不胜感激。

4

1 回答 1

0

由于您是新手,您可能不熟悉如何添加框架。在项目资源管理器中选择项目,然后选择一个目标,然后选择 Build Phases。在构建阶段,有一个“将二进制文件与库链接”部分。选择该选项并单击 + 号。它将向您显示框架列表,您必须从那里选择并包含“MessageUI.framework”。

于 2012-10-11T18:02:52.323 回答