4 Replies
      Latest reply on Mar 4, 2019 4:16 AM by PBK
      greay Level 1 Level 1 (0 points)

        I've created a bunch of sandbox accounts at this point, and it's getting pretty frustrating. I'm not sure what I'm doing wrong.

         

        When my app launches, it shows the

         

        Sign-in Required

        Enter the password for .

        [Environment: Sandbox]

         

        prompt. But even if I enter the *exact* same password I just used to create a sandbox account, and signed into Settings with, I keep getting

         

        Verification Failed.

        Your Apple ID or password is incorrect.

        • Re: Can't login to sandbox account
          PBK Level 7 Level 7 (3,055 points)

          You use your standard Apple ID for CloudKit.

            • Re: Can't login to sandbox account
              greay Level 1 Level 1 (0 points)

              Oh. It didn't occur to me that they'd be different. And the alert doesn't tell me what account I'm supposed to be signing in to. It's a shame there isn't a way to use sandbox accounts for CloudKit, as well. It would make my life *a lot* easier...

               

              Actually, it's not accepting my regular iCloud password *or* my Sandbox password, either.

            • Re: Can't login to sandbox account
              greay Level 1 Level 1 (0 points)

              So, yeah. I'm blocked.

               

              This app *does* use IAP, so I definitely need to be able to log into a sandbox account. But I'm trying to add iCloud sync for some saved settings & such, so I guess I need to use my normal iCloud account for that. This is using *iCloud Key-Value Store*, which I'm led to believe is somehow different from CloudKit, though I'm still not 100% clear on the distinction between all the different iCloud approaches. So I have 3 questions, now.

               

              1: is it possible to use a Sandbox account for IAP at the same time as iCloud Key-Value Store? It seems like it should be, since they're separate settings.

              2: what account is it asking me to log into on launch, and why can't I login?

              3: Is there *any* way outside of adding a debug setting in the app to clear the Key-Value Store? Even though the data persists across deleting & reinstalling, it doesn't show up in iCloud's "Manage Storage"

                • Re: Can't login to sandbox account
                  PBK Level 7 Level 7 (3,055 points)

                  1)yes. You sign into the App Store only when asked to by StoreKit when making your purchase. ...........2). Your code is requiring a log in perhaps because you are authenticating a user. This is most likely your iCloud account. That is, unless you are initiating an IAP purchase or refreshing the App Store receipt. ...........3) there is no way to clear key value iCloud file unless you intentional store nil in each value. This is a good thing.