macOS 开发 - 保存 EKEvent 到日历失败 No calendar has been set.

版权声明:本文为博主原创文章,转载请附上本文链接地址。from : https://blog.csdn.net/lovechris00 https://blog.csdn.net/lovechris00/article/details/82178718

保存失败报错:

error=Error Domain=EKErrorDomain Code=1 "No calendar has been set." UserInfo={NSLocalizedDescription=No calendar has been set.}

这种情况一般是开启了沙盒,但没有勾选 Calanedar

这里写图片描述


保存 EKEvent 可以在两种沙盒情况下:
1、关闭沙盒;
2、开启沙盒,但勾选 Calanedar

猜你喜欢

转载自blog.csdn.net/lovechris00/article/details/82178718
今日推荐