3

I believe I have everything set up right, and everything works for CloudKit in the iOS Simulator, but I can't get CloudKit to work in the Watch Simulator: "Couldn't send a valid signature"

Does anyone know why this would be?

  • I know CloudKit works in watchOS 3 per Apple "iCloud interactions. Starting with watchOS 3, the WatchKit extension can communicate directly with CloudKit and other iCloud technologies."

  • I already did Settings > iCloud and then log in using your Apple ID
    on the iOS simulator per enter link description here

  • In the Watch Extension, I'm calling CloudKit using CKContainer(identifier:"iCloud.com.xx.xx") per enter link description here

  • I double-checked Apple's doc to make sure I didn't miss something:
    enter link description here

  • I'm accessing the same CloudKit container on the Watch that I am on
    iOS, so nothing is wrong with accessibility to the data in CloudKit

  • The CloudKit capability with the container identifier is set correctly in the Watch Target
Community
  • 1
  • 1
SRMR
  • 3,064
  • 6
  • 31
  • 59
  • Is the CloudKit capability with the container identifier set in the watch target? – Jerry Dec 25 '16 at 03:49
  • @Jerry yup the CloudKit capability with the container identifier is set correctly in the watch target. Thanks for checking on that, I'll add it to my question information too. Let me know if you can think of anything else. – SRMR Dec 25 '16 at 22:57
  • Does it work on hardware, but not the simulator? – Jerry Dec 25 '16 at 23:01
  • @Jerry yeah it works on hardware but not Apple Watch Simulator – SRMR Dec 26 '16 at 18:25

1 Answers1

4

According to Apple:

CloudKit usage is blocked on watchOS Simulators. Running any test will throw a “Not Authenticated” error even though you are signed in via the paired iOS Simulator. Workaround: Use CloudKit on paired devices with watchOS 3 and iOS 10.

This is from the watchOS 3 release notes, but does not seem to be fixed yet. Just test on a real watch and everything will work fine.

miken32
  • 42,008
  • 16
  • 111
  • 154
Nikos M.
  • 13,685
  • 4
  • 47
  • 61