Undefined symbols for architecture i386: “_OBJC_CLASS_$_MFMailComposeViewController”

前端 未结 2 1386
执笔经年
执笔经年 2020-12-16 15:14

I train in the creation of programs for the iPhone using MFMailComposeViewController. However, an error occurs when compiling:

Undefined symbols for architec         


        
相关标签:
2条回答
  • 2020-12-16 15:31

    You likely do not have the necessary imports:

    MessageUI.framework
    

    How you add them can be found here importing framework

    0 讨论(0)
  • 2020-12-16 15:40

    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).
    0 讨论(0)
提交回复
热议问题