该博客主要描述我所遇到的问题情况。配置环境我附上连接自己去看看。
Mailcore2的配置
For iOS - If you're targeting iOS, you have to link against MailCore 2 as a static library:
1.Add libMailCore-ios.a
2.Add CFNetwork.framework
3.Add Security.framework
4.Set 'Other Linker Flags': -lctemplate-ios -letpan-ios -lxml2 -lsasl2 -liconv -ltidy -lz -lc++ -lresolv -stdlib=libc++ -ObjC
5.Make sure to use LLVM C++ standard library. Open Build Settings, scroll down to 'C++ Standard Library', and select libc++.
6.In Build Phases, add a Target Dependency of static mailcore2 ios.
该视频是iOS配置的视频 不过有些地方和官方代码不一样,还是以官方的代码配置为主,具体那里不同自己看后对比就知道
遇到的坑
Error Domain=MCOErrorDomain Code=5 "Unable to authenticate with the current session's credentials." UserInfo={NSLocalizedDescription=Unable to authenticate with the c