2 Replies
      Latest reply on May 2, 2019 9:01 AM by merline666
      Kuei Level 1 Level 1 (0 points)

        Refer to https://stackoverflow.com/questions/42037211/watchkit-extension-cannot-read-from-icloudhttps://developer.apple.com/contact/#!/topic/SC1102/subtopic/30014/solution/select

        When I try to synchronize data between iOS and watchOS, iCloud is not working.

        When I use

         

        NSFileManager *fm = [NSFileManager defaultManager];
        id token = [fm ubiquityIdentityToken];

         

        to get iCloud token, it will get a error code 4009 and get nil from ubiquitIdentityToken.

         

        I've turn on iCloud settings on Capabilities page on watchOS extention target.

        Does watchkit not support iCloud service but be with the setting page?

         

        Thank you.