Undefined symbols for architecture i386: “_OBJC_CLASS_$_MFMailComposeViewController”

前端 未结 2 1385
执笔经年
执笔经年 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: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).

提交回复
热议问题