Save game data into iCloud via GameKit

送分小仙女□ 提交于 2019-12-05 06:04:54

I had a similar issue. After I signed in with my iCloud account on my device's settings, the exact same error was still showing up, and it only stopped when I enabled the iCloud Drive for my account, otherwise it will never work.

So, it looks like the user must be using iCloud Drive, otherwise GKSavedGame will never work. Apple docs never mention that as far as I'm aware.

  1. Prerequisite:

    • You must have an Apple ID.
    • Check you have your Capabilities set.

      Capabilities > iCloud > ON
      (You must have iCloud Documents checked.)

      Capabilities > Game Center > ON

  2. Go to iCloud and create your account

  3. Now you can log in with your device or simulator, in Settings > iCloud.

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