Undefined symbols for architecture i386: “_OBJC_CLASS_$_MFMailComposeViewController”

2 Solutions Collect From Internet About “Undefined symbols for architecture i386: “_OBJC_CLASS_$_MFMailComposeViewController””

You must add the MessageUI.framework framework to you project.

Here’s how you do it:

  • 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).

You likely do not have the necessary imports:


How you add them can be found here importing framework