MFMailComposeViewController doesn't link for simulator

≯℡__Kan透↙ 提交于 2019-12-02 20:17:42

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.

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 :)

iphone user

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

Add MessageUI.framework to the project Linked Frameworks and Libraries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!