Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
508 views
in Technique[技术] by (71.8m points)

iphone - Cannot connect to iTunes store error

Well, I'm having this issue now. I'm using MKStoreKit in my in-app purchase. This are my errors:

Failed transaction: <SKPaymentTransaction: 0x136a62e0>
error: Error Domain=SKErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo=0x13654a90 {NSLocalizedDescription=Cannot connect to iTunes Store}

Any idea?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You may remove that error via cross checking this check list. If your answer is no for any of the points then it may be causing the problem

  1. Have you enabled In-App Purchases for your App ID?
  2. Have you checked Cleared for Sale for your product?
  3. Does your project’s .plist Bundle ID match your App ID?
  4. Have you generated and installed a new provisioning profile for the new App ID?
  5. Have you configured your project to code sign using this new provisioning profile?
  6. Are you using the full product ID when making an SKProductRequest?
  7. Have you waited several hours since adding your product to iTunes Connect?
  8. Are your bank details active on iTunes Connect?
  9. Is your device jailbroken? If so, you need to revert the jailbreak for IAP to work.
  10. For iOS7 and Xcode 5 Try doing this:
    1. You have to test on a physical device as apple restrict IAP testing in the simulator.
    2. Go to setting -> iTunes & App Store -> and log out of your account. Remove app from device and clean all data.

Most importantly do logout from your current iTunes account in your device before trying to do any purchase.

Make sure you have done all necessary steps for in-App purchase testing.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...