MFMailComposeViewController doesn't link for simulator

前端 未结 4 1597
抹茶落季
抹茶落季 2021-02-02 08:43

First off, I\'m using XCode 4.0.2.

Okay, here is my issue. I can build Apple sample program for MFMailComposerViewController and run it in the simulator (I am aware it w

相关标签:
4条回答
  • 2021-02-02 09:23

    Add MessageUI.framework although the docs said it is not a must.

    0 讨论(0)
  • 2021-02-02 09:25

    SOLUTION

    Looking "Build Settings" (Basic and Combined) I saw that I had "Framework Search Path" set. This was odd because I never remembered setting that. Deleting it fixed the problem.

    I am now able to build for both the simulator and the target. NOTE: You can NOT send email from the simulator, but you should still be able to run the code (if that makes sense).

    This was the solution to my problem :)

    0 讨论(0)
  • 2021-02-02 09:30

    Add MessageUI.framework to the project Linked Frameworks and Libraries

    0 讨论(0)
  • 2021-02-02 09:44

    In Xcode go to the build phases tab for your target. Make sure you see MessageUI.framework. If it's not there click + to add a new framework.

    0 讨论(0)
提交回复
热议问题