“Couldn't send a valid signature” error when using CloudKit without iCloud account

蓝咒 提交于 2019-11-30 08:15:57

问题


I have submitted an iOS app that uses CloudKit to Apple. It's being rejected because it requires user to sign into iCloud for access. Apple's reasoning is that even without iCloud sign-in, the public database is still readable. So that part of the app should function.

I am trying to modify the app but I continue to get this error when I am not signed in.

<CKError 0x8141a360: "Internal Error" (1/4000); "Couldn't send a valid signature">

I have searched the web and the solution is always just to sign into iCloud. There is no Apple documentation regarding this error either. Does anyone know how to resolve this without signing into an iCloud account? Thank you very much.


回答1:


I had the same error but a slightly different cause, so for this problem another thing to check (other than that @Cakelly posted themselves as a comment):

This error can also occur if you try to access the Production database from the simulator, even if you are signed in to iCloud. Change back to the Development database to test on a simulator.



来源:https://stackoverflow.com/questions/35321975/couldnt-send-a-valid-signature-error-when-using-cloudkit-without-icloud-accou

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