“Cannot connect to iTunes Store” in-app purchases












76















I am having problems testing my in-app purchases. I get back valid product identifiers, but upon purchase I receive the dreaded "Cannot connect to iTunes Store". Interesting thing is that restore purchases seems to work - iTunes login pops up.



I have:
- Checked that my in-app purchases are cleared for sale
- Checked, rechecked my source code to be in sync with Apple's documentation
- Added appropiate test users
- app id does not contain wildcard
- in-app purchases are linked to the app (app itself is in developer rejected state, purchases are in ready to submit)
- waited
- reinstalled app, cleaned solution, all the voodoo stuff










share|improve this question




















  • 20





    +1 for "all the voodoo stuff" - ain't that the truth!

    – Craig Watkinson
    Nov 6 '13 at 23:22











  • Apple, why do you do this so complicate!!!

    – Borzh
    Oct 6 '18 at 23:56
















76















I am having problems testing my in-app purchases. I get back valid product identifiers, but upon purchase I receive the dreaded "Cannot connect to iTunes Store". Interesting thing is that restore purchases seems to work - iTunes login pops up.



I have:
- Checked that my in-app purchases are cleared for sale
- Checked, rechecked my source code to be in sync with Apple's documentation
- Added appropiate test users
- app id does not contain wildcard
- in-app purchases are linked to the app (app itself is in developer rejected state, purchases are in ready to submit)
- waited
- reinstalled app, cleaned solution, all the voodoo stuff










share|improve this question




















  • 20





    +1 for "all the voodoo stuff" - ain't that the truth!

    – Craig Watkinson
    Nov 6 '13 at 23:22











  • Apple, why do you do this so complicate!!!

    – Borzh
    Oct 6 '18 at 23:56














76












76








76


8






I am having problems testing my in-app purchases. I get back valid product identifiers, but upon purchase I receive the dreaded "Cannot connect to iTunes Store". Interesting thing is that restore purchases seems to work - iTunes login pops up.



I have:
- Checked that my in-app purchases are cleared for sale
- Checked, rechecked my source code to be in sync with Apple's documentation
- Added appropiate test users
- app id does not contain wildcard
- in-app purchases are linked to the app (app itself is in developer rejected state, purchases are in ready to submit)
- waited
- reinstalled app, cleaned solution, all the voodoo stuff










share|improve this question
















I am having problems testing my in-app purchases. I get back valid product identifiers, but upon purchase I receive the dreaded "Cannot connect to iTunes Store". Interesting thing is that restore purchases seems to work - iTunes login pops up.



I have:
- Checked that my in-app purchases are cleared for sale
- Checked, rechecked my source code to be in sync with Apple's documentation
- Added appropiate test users
- app id does not contain wildcard
- in-app purchases are linked to the app (app itself is in developer rejected state, purchases are in ready to submit)
- waited
- reinstalled app, cleaned solution, all the voodoo stuff







ios cocoa-touch in-app-purchase






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 10 '15 at 7:27









James Webster

28.2k1160108




28.2k1160108










asked Sep 13 '11 at 13:36









gabzsagabzsa

379136




379136








  • 20





    +1 for "all the voodoo stuff" - ain't that the truth!

    – Craig Watkinson
    Nov 6 '13 at 23:22











  • Apple, why do you do this so complicate!!!

    – Borzh
    Oct 6 '18 at 23:56














  • 20





    +1 for "all the voodoo stuff" - ain't that the truth!

    – Craig Watkinson
    Nov 6 '13 at 23:22











  • Apple, why do you do this so complicate!!!

    – Borzh
    Oct 6 '18 at 23:56








20




20





+1 for "all the voodoo stuff" - ain't that the truth!

– Craig Watkinson
Nov 6 '13 at 23:22





+1 for "all the voodoo stuff" - ain't that the truth!

– Craig Watkinson
Nov 6 '13 at 23:22













Apple, why do you do this so complicate!!!

– Borzh
Oct 6 '18 at 23:56





Apple, why do you do this so complicate!!!

– Borzh
Oct 6 '18 at 23:56












10 Answers
10






active

oldest

votes


















97














Make sure you have signed out of any production iTunes accounts on the device.



I was getting this error on my test phone which was logged in with my actual iTunes account. You cannot test apps using your production iTunes account, hence the error. I just wish Apple provided a better error so as to avoid this guesswork...






share|improve this answer



















  • 1





    thank you! You just saved me a lot of hours +1!

    – Gyfis
    May 9 '14 at 11:52











  • This should be given correct answer

    – Mitul Nakum
    Dec 11 '14 at 20:27











  • Really thanks for your reply.

    – Siddharth
    Apr 14 '16 at 8:40






  • 1





    My error was simply not setting up a Sandbox User, I forgot that step. And don't log into it from the Settings >> iTunes section of the device b/c that will break it. Wait and do it during the actual testing.

    – Nathan Prather
    Jul 22 '16 at 3:12






  • 1





    logged out from all iTunes accounts. its prompt me for sign-In required and then transection gets failed. used many sandbox tester account but won't work.

    – bLacK hoLE
    Oct 4 '18 at 12:02





















40














see In-App Purchase FAQ: Cannot connect to iTunes Store



Your app is running in the Simulator, which does not support In-App Purchase


For testing in app purchases always use real devices.






share|improve this answer


























  • Your app does not have a bundle version (CFBundleVersion). <-- This is what saved me. Thanks for the link.

    – daltonclaybrook
    Feb 23 '17 at 15:33



















19














For newcomers, make sure your in-app purchasing product's status is Ready to Submit, with no "missing metadata". In my case, what was missing was the localization of the subscription's group.



enter image description here






share|improve this answer



















  • 1





    Thank you! In my case, it was missing a localization for the display name.

    – Justin
    May 20 '17 at 11:18











  • In my IAP, it shows "Waiting for Upload". I'm still getting the error

    – Vaibhav Jhaveri
    Mar 13 '18 at 10:29





















7














I've been having this problem and I'm convinced its a bug. I've filed a bug report with Bug Id 10108270



The problem seems to be that the test user is getting 'locked' and may have something to do with attempting to purchase an in app purchase in an already released app with that account.



My workaround was to create a new test user but until Apple get back to me, I can't provide any better solutions. I'll update this answer when I get replies.






share|improve this answer



















  • 2





    I have created a new test user, but it didn't help.

    – gabzsa
    Sep 13 '11 at 13:55











  • I'm sorry I can't help more, that was my workaround, it's a shame it doesn't work for you. I'll keep this answer updated when I get more information.

    – James Webster
    Sep 13 '11 at 14:13











  • I created a new test account and in-app purchase started working again. Thanks!

    – Miha Hribar
    Sep 27 '11 at 13:28











  • Creating a new test user solved the problem for me. (A few days ago I got a notice when trying to use my old test user that it had been disabled, so I had to go re-enable it. Soon after that, I started getting the Cannot connect to iTunes store error. But once I created a new test user, purchases worked again.)

    – Andrew
    Nov 11 '11 at 5:25





















3














This problem remains persistent in 2016. Incredible. Here was my solution:



Add a build number. Target > General > Identities > Build.






share|improve this answer



















  • 1





    UNBELIEVABLE. This is still an issue in 2018. I don't use a build number in debug mode because I increment it for production releases only. Thanks for posting this.

    – Steven Peterson
    Aug 4 '18 at 3:10



















2














I'm hitting the same issue. For me it happens after this secuence:




  • Install app on a device logged into a UK account on iTunes

  • Launch the app and use a test user set in USA

  • Message is shown saying account is only valid in USA. Closes the app and auto launches iTunes

  • Open your app again and retry purchase. Receive products but no other callback or error.


I don't know whether this is an issue on the IAP platform but I would like to get an error/callback to handle it in some way in my code.



To carry on testing your IAPs try any of these:




  1. Remove Provisioning Profile in Settings area, remove App and log out from Store in Settings. Then go to XCode and change the signing identities to "Do Not Sign" to then put them back (I know how it sounds :) but try) OR

  2. Hard reset all Settings on your device (Settings -> General...). Obviously you will loose any settings on that device...

  3. Kill iTunes app on the device (multitask menu) and log out from the Store on the Settings


If none of the above work, it might be an issue on IAP platform, see my comments below.






share|improve this answer


























  • Thanks, but neither method 1 or 2 worked for me. Still cannot connect to iTunes. :(

    – gabzsa
    Sep 13 '11 at 16:53











  • Actually, I've tried myself and I can't either! I have a feeling this is a problem TODAY/RECENT with the platform. But I can't find any link to confirm it (status). Argh!. I'm leaving it for a few hours and see if that is the case and it's something external to the devs

    – Juan Fran Jimenez
    Sep 13 '11 at 17:12











  • Have tried to kill iTunes app on the device (multitask menu) and log out from the Store on the Settings?

    – Juan Fran Jimenez
    Sep 15 '11 at 10:01











  • Let me add that Game Center (sandbox at least) has been unstable for the last 5 days or so. Only last night started to work better. I'm mentioning it because my IAP code hasn't changed since my answer and now it works. I'm inclined to think there was an error on Apple IAP platform and that somehow was related to Game Center too.

    – Juan Fran Jimenez
    Sep 15 '11 at 10:17



















2














Make sure the system status is ready https://www.apple.com/support/systemstatus/



I have an Iphone, Restart it worked for me






share|improve this answer



















  • 1





    Here's the developer system status: developer.apple.com/system-status

    – Jan Schlorf
    Dec 7 '17 at 11:52



















1














This is an old thread that is related to problem I was facing today.



In my case, I was able to test in-app purchases on my device till yesterday but it stopped working today. It turned out that Apple had pushed an 'Amendment for Paid Applications' for me to review and agree to. Once I agreed to the amendment (without reading it, of course), everything started working again. Did not have to create a new test user or any other workaround.



There may be many reasons for in-app purchases to not work but make sure you are correctly set up on itunesconnect or you won't be able to test in-app purchases.






share|improve this answer

































    1














    You may also be getting this error when reusing an old sandbox account you tested a previous IAP on another app with (My scenario). Apple really needs to update the way we test IAPs, I'm running out of emails :0






    share|improve this answer
























    • I had this issue as well. Sometimes creating a new user helps. Also you don't need to use a real email. I through -## at the end of mine and keep adding new ones.

      – Jeremiah
      Mar 24 '18 at 15:38



















    0














    This error also had occurred when to SKProductsRequest passed wrong NSSet:



    Wrong:



    let products = NSSet(objects: ["id1", "id2"])


    Correct:



    let products = NSSet(objects: "id1", "id2")





    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f7402801%2fcannot-connect-to-itunes-store-in-app-purchases%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      10 Answers
      10






      active

      oldest

      votes








      10 Answers
      10






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      97














      Make sure you have signed out of any production iTunes accounts on the device.



      I was getting this error on my test phone which was logged in with my actual iTunes account. You cannot test apps using your production iTunes account, hence the error. I just wish Apple provided a better error so as to avoid this guesswork...






      share|improve this answer



















      • 1





        thank you! You just saved me a lot of hours +1!

        – Gyfis
        May 9 '14 at 11:52











      • This should be given correct answer

        – Mitul Nakum
        Dec 11 '14 at 20:27











      • Really thanks for your reply.

        – Siddharth
        Apr 14 '16 at 8:40






      • 1





        My error was simply not setting up a Sandbox User, I forgot that step. And don't log into it from the Settings >> iTunes section of the device b/c that will break it. Wait and do it during the actual testing.

        – Nathan Prather
        Jul 22 '16 at 3:12






      • 1





        logged out from all iTunes accounts. its prompt me for sign-In required and then transection gets failed. used many sandbox tester account but won't work.

        – bLacK hoLE
        Oct 4 '18 at 12:02


















      97














      Make sure you have signed out of any production iTunes accounts on the device.



      I was getting this error on my test phone which was logged in with my actual iTunes account. You cannot test apps using your production iTunes account, hence the error. I just wish Apple provided a better error so as to avoid this guesswork...






      share|improve this answer



















      • 1





        thank you! You just saved me a lot of hours +1!

        – Gyfis
        May 9 '14 at 11:52











      • This should be given correct answer

        – Mitul Nakum
        Dec 11 '14 at 20:27











      • Really thanks for your reply.

        – Siddharth
        Apr 14 '16 at 8:40






      • 1





        My error was simply not setting up a Sandbox User, I forgot that step. And don't log into it from the Settings >> iTunes section of the device b/c that will break it. Wait and do it during the actual testing.

        – Nathan Prather
        Jul 22 '16 at 3:12






      • 1





        logged out from all iTunes accounts. its prompt me for sign-In required and then transection gets failed. used many sandbox tester account but won't work.

        – bLacK hoLE
        Oct 4 '18 at 12:02
















      97












      97








      97







      Make sure you have signed out of any production iTunes accounts on the device.



      I was getting this error on my test phone which was logged in with my actual iTunes account. You cannot test apps using your production iTunes account, hence the error. I just wish Apple provided a better error so as to avoid this guesswork...






      share|improve this answer













      Make sure you have signed out of any production iTunes accounts on the device.



      I was getting this error on my test phone which was logged in with my actual iTunes account. You cannot test apps using your production iTunes account, hence the error. I just wish Apple provided a better error so as to avoid this guesswork...







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Dec 2 '12 at 3:40









      stevelstevel

      1,3051213




      1,3051213








      • 1





        thank you! You just saved me a lot of hours +1!

        – Gyfis
        May 9 '14 at 11:52











      • This should be given correct answer

        – Mitul Nakum
        Dec 11 '14 at 20:27











      • Really thanks for your reply.

        – Siddharth
        Apr 14 '16 at 8:40






      • 1





        My error was simply not setting up a Sandbox User, I forgot that step. And don't log into it from the Settings >> iTunes section of the device b/c that will break it. Wait and do it during the actual testing.

        – Nathan Prather
        Jul 22 '16 at 3:12






      • 1





        logged out from all iTunes accounts. its prompt me for sign-In required and then transection gets failed. used many sandbox tester account but won't work.

        – bLacK hoLE
        Oct 4 '18 at 12:02
















      • 1





        thank you! You just saved me a lot of hours +1!

        – Gyfis
        May 9 '14 at 11:52











      • This should be given correct answer

        – Mitul Nakum
        Dec 11 '14 at 20:27











      • Really thanks for your reply.

        – Siddharth
        Apr 14 '16 at 8:40






      • 1





        My error was simply not setting up a Sandbox User, I forgot that step. And don't log into it from the Settings >> iTunes section of the device b/c that will break it. Wait and do it during the actual testing.

        – Nathan Prather
        Jul 22 '16 at 3:12






      • 1





        logged out from all iTunes accounts. its prompt me for sign-In required and then transection gets failed. used many sandbox tester account but won't work.

        – bLacK hoLE
        Oct 4 '18 at 12:02










      1




      1





      thank you! You just saved me a lot of hours +1!

      – Gyfis
      May 9 '14 at 11:52





      thank you! You just saved me a lot of hours +1!

      – Gyfis
      May 9 '14 at 11:52













      This should be given correct answer

      – Mitul Nakum
      Dec 11 '14 at 20:27





      This should be given correct answer

      – Mitul Nakum
      Dec 11 '14 at 20:27













      Really thanks for your reply.

      – Siddharth
      Apr 14 '16 at 8:40





      Really thanks for your reply.

      – Siddharth
      Apr 14 '16 at 8:40




      1




      1





      My error was simply not setting up a Sandbox User, I forgot that step. And don't log into it from the Settings >> iTunes section of the device b/c that will break it. Wait and do it during the actual testing.

      – Nathan Prather
      Jul 22 '16 at 3:12





      My error was simply not setting up a Sandbox User, I forgot that step. And don't log into it from the Settings >> iTunes section of the device b/c that will break it. Wait and do it during the actual testing.

      – Nathan Prather
      Jul 22 '16 at 3:12




      1




      1





      logged out from all iTunes accounts. its prompt me for sign-In required and then transection gets failed. used many sandbox tester account but won't work.

      – bLacK hoLE
      Oct 4 '18 at 12:02







      logged out from all iTunes accounts. its prompt me for sign-In required and then transection gets failed. used many sandbox tester account but won't work.

      – bLacK hoLE
      Oct 4 '18 at 12:02















      40














      see In-App Purchase FAQ: Cannot connect to iTunes Store



      Your app is running in the Simulator, which does not support In-App Purchase


      For testing in app purchases always use real devices.






      share|improve this answer


























      • Your app does not have a bundle version (CFBundleVersion). <-- This is what saved me. Thanks for the link.

        – daltonclaybrook
        Feb 23 '17 at 15:33
















      40














      see In-App Purchase FAQ: Cannot connect to iTunes Store



      Your app is running in the Simulator, which does not support In-App Purchase


      For testing in app purchases always use real devices.






      share|improve this answer


























      • Your app does not have a bundle version (CFBundleVersion). <-- This is what saved me. Thanks for the link.

        – daltonclaybrook
        Feb 23 '17 at 15:33














      40












      40








      40







      see In-App Purchase FAQ: Cannot connect to iTunes Store



      Your app is running in the Simulator, which does not support In-App Purchase


      For testing in app purchases always use real devices.






      share|improve this answer















      see In-App Purchase FAQ: Cannot connect to iTunes Store



      Your app is running in the Simulator, which does not support In-App Purchase


      For testing in app purchases always use real devices.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Oct 17 '16 at 14:50









      Saqib Omer

      3,41244057




      3,41244057










      answered Dec 17 '13 at 15:51









      DShahDShah

      7,887962120




      7,887962120













      • Your app does not have a bundle version (CFBundleVersion). <-- This is what saved me. Thanks for the link.

        – daltonclaybrook
        Feb 23 '17 at 15:33



















      • Your app does not have a bundle version (CFBundleVersion). <-- This is what saved me. Thanks for the link.

        – daltonclaybrook
        Feb 23 '17 at 15:33

















      Your app does not have a bundle version (CFBundleVersion). <-- This is what saved me. Thanks for the link.

      – daltonclaybrook
      Feb 23 '17 at 15:33





      Your app does not have a bundle version (CFBundleVersion). <-- This is what saved me. Thanks for the link.

      – daltonclaybrook
      Feb 23 '17 at 15:33











      19














      For newcomers, make sure your in-app purchasing product's status is Ready to Submit, with no "missing metadata". In my case, what was missing was the localization of the subscription's group.



      enter image description here






      share|improve this answer



















      • 1





        Thank you! In my case, it was missing a localization for the display name.

        – Justin
        May 20 '17 at 11:18











      • In my IAP, it shows "Waiting for Upload". I'm still getting the error

        – Vaibhav Jhaveri
        Mar 13 '18 at 10:29


















      19














      For newcomers, make sure your in-app purchasing product's status is Ready to Submit, with no "missing metadata". In my case, what was missing was the localization of the subscription's group.



      enter image description here






      share|improve this answer



















      • 1





        Thank you! In my case, it was missing a localization for the display name.

        – Justin
        May 20 '17 at 11:18











      • In my IAP, it shows "Waiting for Upload". I'm still getting the error

        – Vaibhav Jhaveri
        Mar 13 '18 at 10:29
















      19












      19








      19







      For newcomers, make sure your in-app purchasing product's status is Ready to Submit, with no "missing metadata". In my case, what was missing was the localization of the subscription's group.



      enter image description here






      share|improve this answer













      For newcomers, make sure your in-app purchasing product's status is Ready to Submit, with no "missing metadata". In my case, what was missing was the localization of the subscription's group.



      enter image description here







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 16 '16 at 12:48









      Dielson SalesDielson Sales

      1,19511521




      1,19511521








      • 1





        Thank you! In my case, it was missing a localization for the display name.

        – Justin
        May 20 '17 at 11:18











      • In my IAP, it shows "Waiting for Upload". I'm still getting the error

        – Vaibhav Jhaveri
        Mar 13 '18 at 10:29
















      • 1





        Thank you! In my case, it was missing a localization for the display name.

        – Justin
        May 20 '17 at 11:18











      • In my IAP, it shows "Waiting for Upload". I'm still getting the error

        – Vaibhav Jhaveri
        Mar 13 '18 at 10:29










      1




      1





      Thank you! In my case, it was missing a localization for the display name.

      – Justin
      May 20 '17 at 11:18





      Thank you! In my case, it was missing a localization for the display name.

      – Justin
      May 20 '17 at 11:18













      In my IAP, it shows "Waiting for Upload". I'm still getting the error

      – Vaibhav Jhaveri
      Mar 13 '18 at 10:29







      In my IAP, it shows "Waiting for Upload". I'm still getting the error

      – Vaibhav Jhaveri
      Mar 13 '18 at 10:29













      7














      I've been having this problem and I'm convinced its a bug. I've filed a bug report with Bug Id 10108270



      The problem seems to be that the test user is getting 'locked' and may have something to do with attempting to purchase an in app purchase in an already released app with that account.



      My workaround was to create a new test user but until Apple get back to me, I can't provide any better solutions. I'll update this answer when I get replies.






      share|improve this answer



















      • 2





        I have created a new test user, but it didn't help.

        – gabzsa
        Sep 13 '11 at 13:55











      • I'm sorry I can't help more, that was my workaround, it's a shame it doesn't work for you. I'll keep this answer updated when I get more information.

        – James Webster
        Sep 13 '11 at 14:13











      • I created a new test account and in-app purchase started working again. Thanks!

        – Miha Hribar
        Sep 27 '11 at 13:28











      • Creating a new test user solved the problem for me. (A few days ago I got a notice when trying to use my old test user that it had been disabled, so I had to go re-enable it. Soon after that, I started getting the Cannot connect to iTunes store error. But once I created a new test user, purchases worked again.)

        – Andrew
        Nov 11 '11 at 5:25


















      7














      I've been having this problem and I'm convinced its a bug. I've filed a bug report with Bug Id 10108270



      The problem seems to be that the test user is getting 'locked' and may have something to do with attempting to purchase an in app purchase in an already released app with that account.



      My workaround was to create a new test user but until Apple get back to me, I can't provide any better solutions. I'll update this answer when I get replies.






      share|improve this answer



















      • 2





        I have created a new test user, but it didn't help.

        – gabzsa
        Sep 13 '11 at 13:55











      • I'm sorry I can't help more, that was my workaround, it's a shame it doesn't work for you. I'll keep this answer updated when I get more information.

        – James Webster
        Sep 13 '11 at 14:13











      • I created a new test account and in-app purchase started working again. Thanks!

        – Miha Hribar
        Sep 27 '11 at 13:28











      • Creating a new test user solved the problem for me. (A few days ago I got a notice when trying to use my old test user that it had been disabled, so I had to go re-enable it. Soon after that, I started getting the Cannot connect to iTunes store error. But once I created a new test user, purchases worked again.)

        – Andrew
        Nov 11 '11 at 5:25
















      7












      7








      7







      I've been having this problem and I'm convinced its a bug. I've filed a bug report with Bug Id 10108270



      The problem seems to be that the test user is getting 'locked' and may have something to do with attempting to purchase an in app purchase in an already released app with that account.



      My workaround was to create a new test user but until Apple get back to me, I can't provide any better solutions. I'll update this answer when I get replies.






      share|improve this answer













      I've been having this problem and I'm convinced its a bug. I've filed a bug report with Bug Id 10108270



      The problem seems to be that the test user is getting 'locked' and may have something to do with attempting to purchase an in app purchase in an already released app with that account.



      My workaround was to create a new test user but until Apple get back to me, I can't provide any better solutions. I'll update this answer when I get replies.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Sep 13 '11 at 13:54









      James WebsterJames Webster

      28.2k1160108




      28.2k1160108








      • 2





        I have created a new test user, but it didn't help.

        – gabzsa
        Sep 13 '11 at 13:55











      • I'm sorry I can't help more, that was my workaround, it's a shame it doesn't work for you. I'll keep this answer updated when I get more information.

        – James Webster
        Sep 13 '11 at 14:13











      • I created a new test account and in-app purchase started working again. Thanks!

        – Miha Hribar
        Sep 27 '11 at 13:28











      • Creating a new test user solved the problem for me. (A few days ago I got a notice when trying to use my old test user that it had been disabled, so I had to go re-enable it. Soon after that, I started getting the Cannot connect to iTunes store error. But once I created a new test user, purchases worked again.)

        – Andrew
        Nov 11 '11 at 5:25
















      • 2





        I have created a new test user, but it didn't help.

        – gabzsa
        Sep 13 '11 at 13:55











      • I'm sorry I can't help more, that was my workaround, it's a shame it doesn't work for you. I'll keep this answer updated when I get more information.

        – James Webster
        Sep 13 '11 at 14:13











      • I created a new test account and in-app purchase started working again. Thanks!

        – Miha Hribar
        Sep 27 '11 at 13:28











      • Creating a new test user solved the problem for me. (A few days ago I got a notice when trying to use my old test user that it had been disabled, so I had to go re-enable it. Soon after that, I started getting the Cannot connect to iTunes store error. But once I created a new test user, purchases worked again.)

        – Andrew
        Nov 11 '11 at 5:25










      2




      2





      I have created a new test user, but it didn't help.

      – gabzsa
      Sep 13 '11 at 13:55





      I have created a new test user, but it didn't help.

      – gabzsa
      Sep 13 '11 at 13:55













      I'm sorry I can't help more, that was my workaround, it's a shame it doesn't work for you. I'll keep this answer updated when I get more information.

      – James Webster
      Sep 13 '11 at 14:13





      I'm sorry I can't help more, that was my workaround, it's a shame it doesn't work for you. I'll keep this answer updated when I get more information.

      – James Webster
      Sep 13 '11 at 14:13













      I created a new test account and in-app purchase started working again. Thanks!

      – Miha Hribar
      Sep 27 '11 at 13:28





      I created a new test account and in-app purchase started working again. Thanks!

      – Miha Hribar
      Sep 27 '11 at 13:28













      Creating a new test user solved the problem for me. (A few days ago I got a notice when trying to use my old test user that it had been disabled, so I had to go re-enable it. Soon after that, I started getting the Cannot connect to iTunes store error. But once I created a new test user, purchases worked again.)

      – Andrew
      Nov 11 '11 at 5:25







      Creating a new test user solved the problem for me. (A few days ago I got a notice when trying to use my old test user that it had been disabled, so I had to go re-enable it. Soon after that, I started getting the Cannot connect to iTunes store error. But once I created a new test user, purchases worked again.)

      – Andrew
      Nov 11 '11 at 5:25













      3














      This problem remains persistent in 2016. Incredible. Here was my solution:



      Add a build number. Target > General > Identities > Build.






      share|improve this answer



















      • 1





        UNBELIEVABLE. This is still an issue in 2018. I don't use a build number in debug mode because I increment it for production releases only. Thanks for posting this.

        – Steven Peterson
        Aug 4 '18 at 3:10
















      3














      This problem remains persistent in 2016. Incredible. Here was my solution:



      Add a build number. Target > General > Identities > Build.






      share|improve this answer



















      • 1





        UNBELIEVABLE. This is still an issue in 2018. I don't use a build number in debug mode because I increment it for production releases only. Thanks for posting this.

        – Steven Peterson
        Aug 4 '18 at 3:10














      3












      3








      3







      This problem remains persistent in 2016. Incredible. Here was my solution:



      Add a build number. Target > General > Identities > Build.






      share|improve this answer













      This problem remains persistent in 2016. Incredible. Here was my solution:



      Add a build number. Target > General > Identities > Build.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered May 11 '16 at 18:32









      ArthurVonBabylonArthurVonBabylon

      828




      828








      • 1





        UNBELIEVABLE. This is still an issue in 2018. I don't use a build number in debug mode because I increment it for production releases only. Thanks for posting this.

        – Steven Peterson
        Aug 4 '18 at 3:10














      • 1





        UNBELIEVABLE. This is still an issue in 2018. I don't use a build number in debug mode because I increment it for production releases only. Thanks for posting this.

        – Steven Peterson
        Aug 4 '18 at 3:10








      1




      1





      UNBELIEVABLE. This is still an issue in 2018. I don't use a build number in debug mode because I increment it for production releases only. Thanks for posting this.

      – Steven Peterson
      Aug 4 '18 at 3:10





      UNBELIEVABLE. This is still an issue in 2018. I don't use a build number in debug mode because I increment it for production releases only. Thanks for posting this.

      – Steven Peterson
      Aug 4 '18 at 3:10











      2














      I'm hitting the same issue. For me it happens after this secuence:




      • Install app on a device logged into a UK account on iTunes

      • Launch the app and use a test user set in USA

      • Message is shown saying account is only valid in USA. Closes the app and auto launches iTunes

      • Open your app again and retry purchase. Receive products but no other callback or error.


      I don't know whether this is an issue on the IAP platform but I would like to get an error/callback to handle it in some way in my code.



      To carry on testing your IAPs try any of these:




      1. Remove Provisioning Profile in Settings area, remove App and log out from Store in Settings. Then go to XCode and change the signing identities to "Do Not Sign" to then put them back (I know how it sounds :) but try) OR

      2. Hard reset all Settings on your device (Settings -> General...). Obviously you will loose any settings on that device...

      3. Kill iTunes app on the device (multitask menu) and log out from the Store on the Settings


      If none of the above work, it might be an issue on IAP platform, see my comments below.






      share|improve this answer


























      • Thanks, but neither method 1 or 2 worked for me. Still cannot connect to iTunes. :(

        – gabzsa
        Sep 13 '11 at 16:53











      • Actually, I've tried myself and I can't either! I have a feeling this is a problem TODAY/RECENT with the platform. But I can't find any link to confirm it (status). Argh!. I'm leaving it for a few hours and see if that is the case and it's something external to the devs

        – Juan Fran Jimenez
        Sep 13 '11 at 17:12











      • Have tried to kill iTunes app on the device (multitask menu) and log out from the Store on the Settings?

        – Juan Fran Jimenez
        Sep 15 '11 at 10:01











      • Let me add that Game Center (sandbox at least) has been unstable for the last 5 days or so. Only last night started to work better. I'm mentioning it because my IAP code hasn't changed since my answer and now it works. I'm inclined to think there was an error on Apple IAP platform and that somehow was related to Game Center too.

        – Juan Fran Jimenez
        Sep 15 '11 at 10:17
















      2














      I'm hitting the same issue. For me it happens after this secuence:




      • Install app on a device logged into a UK account on iTunes

      • Launch the app and use a test user set in USA

      • Message is shown saying account is only valid in USA. Closes the app and auto launches iTunes

      • Open your app again and retry purchase. Receive products but no other callback or error.


      I don't know whether this is an issue on the IAP platform but I would like to get an error/callback to handle it in some way in my code.



      To carry on testing your IAPs try any of these:




      1. Remove Provisioning Profile in Settings area, remove App and log out from Store in Settings. Then go to XCode and change the signing identities to "Do Not Sign" to then put them back (I know how it sounds :) but try) OR

      2. Hard reset all Settings on your device (Settings -> General...). Obviously you will loose any settings on that device...

      3. Kill iTunes app on the device (multitask menu) and log out from the Store on the Settings


      If none of the above work, it might be an issue on IAP platform, see my comments below.






      share|improve this answer


























      • Thanks, but neither method 1 or 2 worked for me. Still cannot connect to iTunes. :(

        – gabzsa
        Sep 13 '11 at 16:53











      • Actually, I've tried myself and I can't either! I have a feeling this is a problem TODAY/RECENT with the platform. But I can't find any link to confirm it (status). Argh!. I'm leaving it for a few hours and see if that is the case and it's something external to the devs

        – Juan Fran Jimenez
        Sep 13 '11 at 17:12











      • Have tried to kill iTunes app on the device (multitask menu) and log out from the Store on the Settings?

        – Juan Fran Jimenez
        Sep 15 '11 at 10:01











      • Let me add that Game Center (sandbox at least) has been unstable for the last 5 days or so. Only last night started to work better. I'm mentioning it because my IAP code hasn't changed since my answer and now it works. I'm inclined to think there was an error on Apple IAP platform and that somehow was related to Game Center too.

        – Juan Fran Jimenez
        Sep 15 '11 at 10:17














      2












      2








      2







      I'm hitting the same issue. For me it happens after this secuence:




      • Install app on a device logged into a UK account on iTunes

      • Launch the app and use a test user set in USA

      • Message is shown saying account is only valid in USA. Closes the app and auto launches iTunes

      • Open your app again and retry purchase. Receive products but no other callback or error.


      I don't know whether this is an issue on the IAP platform but I would like to get an error/callback to handle it in some way in my code.



      To carry on testing your IAPs try any of these:




      1. Remove Provisioning Profile in Settings area, remove App and log out from Store in Settings. Then go to XCode and change the signing identities to "Do Not Sign" to then put them back (I know how it sounds :) but try) OR

      2. Hard reset all Settings on your device (Settings -> General...). Obviously you will loose any settings on that device...

      3. Kill iTunes app on the device (multitask menu) and log out from the Store on the Settings


      If none of the above work, it might be an issue on IAP platform, see my comments below.






      share|improve this answer















      I'm hitting the same issue. For me it happens after this secuence:




      • Install app on a device logged into a UK account on iTunes

      • Launch the app and use a test user set in USA

      • Message is shown saying account is only valid in USA. Closes the app and auto launches iTunes

      • Open your app again and retry purchase. Receive products but no other callback or error.


      I don't know whether this is an issue on the IAP platform but I would like to get an error/callback to handle it in some way in my code.



      To carry on testing your IAPs try any of these:




      1. Remove Provisioning Profile in Settings area, remove App and log out from Store in Settings. Then go to XCode and change the signing identities to "Do Not Sign" to then put them back (I know how it sounds :) but try) OR

      2. Hard reset all Settings on your device (Settings -> General...). Obviously you will loose any settings on that device...

      3. Kill iTunes app on the device (multitask menu) and log out from the Store on the Settings


      If none of the above work, it might be an issue on IAP platform, see my comments below.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Sep 15 '11 at 10:18

























      answered Sep 13 '11 at 14:55









      Juan Fran JimenezJuan Fran Jimenez

      1,003917




      1,003917













      • Thanks, but neither method 1 or 2 worked for me. Still cannot connect to iTunes. :(

        – gabzsa
        Sep 13 '11 at 16:53











      • Actually, I've tried myself and I can't either! I have a feeling this is a problem TODAY/RECENT with the platform. But I can't find any link to confirm it (status). Argh!. I'm leaving it for a few hours and see if that is the case and it's something external to the devs

        – Juan Fran Jimenez
        Sep 13 '11 at 17:12











      • Have tried to kill iTunes app on the device (multitask menu) and log out from the Store on the Settings?

        – Juan Fran Jimenez
        Sep 15 '11 at 10:01











      • Let me add that Game Center (sandbox at least) has been unstable for the last 5 days or so. Only last night started to work better. I'm mentioning it because my IAP code hasn't changed since my answer and now it works. I'm inclined to think there was an error on Apple IAP platform and that somehow was related to Game Center too.

        – Juan Fran Jimenez
        Sep 15 '11 at 10:17



















      • Thanks, but neither method 1 or 2 worked for me. Still cannot connect to iTunes. :(

        – gabzsa
        Sep 13 '11 at 16:53











      • Actually, I've tried myself and I can't either! I have a feeling this is a problem TODAY/RECENT with the platform. But I can't find any link to confirm it (status). Argh!. I'm leaving it for a few hours and see if that is the case and it's something external to the devs

        – Juan Fran Jimenez
        Sep 13 '11 at 17:12











      • Have tried to kill iTunes app on the device (multitask menu) and log out from the Store on the Settings?

        – Juan Fran Jimenez
        Sep 15 '11 at 10:01











      • Let me add that Game Center (sandbox at least) has been unstable for the last 5 days or so. Only last night started to work better. I'm mentioning it because my IAP code hasn't changed since my answer and now it works. I'm inclined to think there was an error on Apple IAP platform and that somehow was related to Game Center too.

        – Juan Fran Jimenez
        Sep 15 '11 at 10:17

















      Thanks, but neither method 1 or 2 worked for me. Still cannot connect to iTunes. :(

      – gabzsa
      Sep 13 '11 at 16:53





      Thanks, but neither method 1 or 2 worked for me. Still cannot connect to iTunes. :(

      – gabzsa
      Sep 13 '11 at 16:53













      Actually, I've tried myself and I can't either! I have a feeling this is a problem TODAY/RECENT with the platform. But I can't find any link to confirm it (status). Argh!. I'm leaving it for a few hours and see if that is the case and it's something external to the devs

      – Juan Fran Jimenez
      Sep 13 '11 at 17:12





      Actually, I've tried myself and I can't either! I have a feeling this is a problem TODAY/RECENT with the platform. But I can't find any link to confirm it (status). Argh!. I'm leaving it for a few hours and see if that is the case and it's something external to the devs

      – Juan Fran Jimenez
      Sep 13 '11 at 17:12













      Have tried to kill iTunes app on the device (multitask menu) and log out from the Store on the Settings?

      – Juan Fran Jimenez
      Sep 15 '11 at 10:01





      Have tried to kill iTunes app on the device (multitask menu) and log out from the Store on the Settings?

      – Juan Fran Jimenez
      Sep 15 '11 at 10:01













      Let me add that Game Center (sandbox at least) has been unstable for the last 5 days or so. Only last night started to work better. I'm mentioning it because my IAP code hasn't changed since my answer and now it works. I'm inclined to think there was an error on Apple IAP platform and that somehow was related to Game Center too.

      – Juan Fran Jimenez
      Sep 15 '11 at 10:17





      Let me add that Game Center (sandbox at least) has been unstable for the last 5 days or so. Only last night started to work better. I'm mentioning it because my IAP code hasn't changed since my answer and now it works. I'm inclined to think there was an error on Apple IAP platform and that somehow was related to Game Center too.

      – Juan Fran Jimenez
      Sep 15 '11 at 10:17











      2














      Make sure the system status is ready https://www.apple.com/support/systemstatus/



      I have an Iphone, Restart it worked for me






      share|improve this answer



















      • 1





        Here's the developer system status: developer.apple.com/system-status

        – Jan Schlorf
        Dec 7 '17 at 11:52
















      2














      Make sure the system status is ready https://www.apple.com/support/systemstatus/



      I have an Iphone, Restart it worked for me






      share|improve this answer



















      • 1





        Here's the developer system status: developer.apple.com/system-status

        – Jan Schlorf
        Dec 7 '17 at 11:52














      2












      2








      2







      Make sure the system status is ready https://www.apple.com/support/systemstatus/



      I have an Iphone, Restart it worked for me






      share|improve this answer













      Make sure the system status is ready https://www.apple.com/support/systemstatus/



      I have an Iphone, Restart it worked for me







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Apr 12 '17 at 14:00









      hguzmanhguzman

      15617




      15617








      • 1





        Here's the developer system status: developer.apple.com/system-status

        – Jan Schlorf
        Dec 7 '17 at 11:52














      • 1





        Here's the developer system status: developer.apple.com/system-status

        – Jan Schlorf
        Dec 7 '17 at 11:52








      1




      1





      Here's the developer system status: developer.apple.com/system-status

      – Jan Schlorf
      Dec 7 '17 at 11:52





      Here's the developer system status: developer.apple.com/system-status

      – Jan Schlorf
      Dec 7 '17 at 11:52











      1














      This is an old thread that is related to problem I was facing today.



      In my case, I was able to test in-app purchases on my device till yesterday but it stopped working today. It turned out that Apple had pushed an 'Amendment for Paid Applications' for me to review and agree to. Once I agreed to the amendment (without reading it, of course), everything started working again. Did not have to create a new test user or any other workaround.



      There may be many reasons for in-app purchases to not work but make sure you are correctly set up on itunesconnect or you won't be able to test in-app purchases.






      share|improve this answer






























        1














        This is an old thread that is related to problem I was facing today.



        In my case, I was able to test in-app purchases on my device till yesterday but it stopped working today. It turned out that Apple had pushed an 'Amendment for Paid Applications' for me to review and agree to. Once I agreed to the amendment (without reading it, of course), everything started working again. Did not have to create a new test user or any other workaround.



        There may be many reasons for in-app purchases to not work but make sure you are correctly set up on itunesconnect or you won't be able to test in-app purchases.






        share|improve this answer




























          1












          1








          1







          This is an old thread that is related to problem I was facing today.



          In my case, I was able to test in-app purchases on my device till yesterday but it stopped working today. It turned out that Apple had pushed an 'Amendment for Paid Applications' for me to review and agree to. Once I agreed to the amendment (without reading it, of course), everything started working again. Did not have to create a new test user or any other workaround.



          There may be many reasons for in-app purchases to not work but make sure you are correctly set up on itunesconnect or you won't be able to test in-app purchases.






          share|improve this answer















          This is an old thread that is related to problem I was facing today.



          In my case, I was able to test in-app purchases on my device till yesterday but it stopped working today. It turned out that Apple had pushed an 'Amendment for Paid Applications' for me to review and agree to. Once I agreed to the amendment (without reading it, of course), everything started working again. Did not have to create a new test user or any other workaround.



          There may be many reasons for in-app purchases to not work but make sure you are correctly set up on itunesconnect or you won't be able to test in-app purchases.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 19 '14 at 10:31









          Robert

          4,0621252106




          4,0621252106










          answered Aug 19 '14 at 5:12









          PicSonicsPicSonics

          216




          216























              1














              You may also be getting this error when reusing an old sandbox account you tested a previous IAP on another app with (My scenario). Apple really needs to update the way we test IAPs, I'm running out of emails :0






              share|improve this answer
























              • I had this issue as well. Sometimes creating a new user helps. Also you don't need to use a real email. I through -## at the end of mine and keep adding new ones.

                – Jeremiah
                Mar 24 '18 at 15:38
















              1














              You may also be getting this error when reusing an old sandbox account you tested a previous IAP on another app with (My scenario). Apple really needs to update the way we test IAPs, I'm running out of emails :0






              share|improve this answer
























              • I had this issue as well. Sometimes creating a new user helps. Also you don't need to use a real email. I through -## at the end of mine and keep adding new ones.

                – Jeremiah
                Mar 24 '18 at 15:38














              1












              1








              1







              You may also be getting this error when reusing an old sandbox account you tested a previous IAP on another app with (My scenario). Apple really needs to update the way we test IAPs, I'm running out of emails :0






              share|improve this answer













              You may also be getting this error when reusing an old sandbox account you tested a previous IAP on another app with (My scenario). Apple really needs to update the way we test IAPs, I'm running out of emails :0







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jan 23 '18 at 1:38









              David BaezDavid Baez

              5131722




              5131722













              • I had this issue as well. Sometimes creating a new user helps. Also you don't need to use a real email. I through -## at the end of mine and keep adding new ones.

                – Jeremiah
                Mar 24 '18 at 15:38



















              • I had this issue as well. Sometimes creating a new user helps. Also you don't need to use a real email. I through -## at the end of mine and keep adding new ones.

                – Jeremiah
                Mar 24 '18 at 15:38

















              I had this issue as well. Sometimes creating a new user helps. Also you don't need to use a real email. I through -## at the end of mine and keep adding new ones.

              – Jeremiah
              Mar 24 '18 at 15:38





              I had this issue as well. Sometimes creating a new user helps. Also you don't need to use a real email. I through -## at the end of mine and keep adding new ones.

              – Jeremiah
              Mar 24 '18 at 15:38











              0














              This error also had occurred when to SKProductsRequest passed wrong NSSet:



              Wrong:



              let products = NSSet(objects: ["id1", "id2"])


              Correct:



              let products = NSSet(objects: "id1", "id2")





              share|improve this answer




























                0














                This error also had occurred when to SKProductsRequest passed wrong NSSet:



                Wrong:



                let products = NSSet(objects: ["id1", "id2"])


                Correct:



                let products = NSSet(objects: "id1", "id2")





                share|improve this answer


























                  0












                  0








                  0







                  This error also had occurred when to SKProductsRequest passed wrong NSSet:



                  Wrong:



                  let products = NSSet(objects: ["id1", "id2"])


                  Correct:



                  let products = NSSet(objects: "id1", "id2")





                  share|improve this answer













                  This error also had occurred when to SKProductsRequest passed wrong NSSet:



                  Wrong:



                  let products = NSSet(objects: ["id1", "id2"])


                  Correct:



                  let products = NSSet(objects: "id1", "id2")






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 16 '18 at 7:05









                  IgorIgor

                  7,81833757




                  7,81833757






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f7402801%2fcannot-connect-to-itunes-store-in-app-purchases%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Monofisismo

                      Angular Downloading a file using contenturl with Basic Authentication

                      Olmecas