iPhone In-App Purchase Store Kit error -1003 "Cannot connect to iTunes Store"

Posted by Rei on Stack Overflow See other posts from Stack Overflow or by Rei
Published on 2009-11-11T20:02:35Z Indexed on 2011/01/01 2:53 UTC
Read the original article Hit count: 335

Filed under:
|
|

Hi all-

I've been working on adding in-app purchases and was able to create and test in-app purchases using Store Kit (yay!). During testing, I exercised my app in a way which caused the app to crash mid purchase (so I guess the normal cycle of receiving paymentQueue:updatedTransactions and calling finishTransaction was interrupted).

Now I am unable to successfully complete any transactions and instead am getting only transactions with transactionState SKPaymentTransactionStateFailed when paymentQueue:updatedTransactions is called.

The transaction.error.code is -1003 and the transaction.error.localizedDescription is "Cannot connect to iTunes Store"!

I have tried removing all products from iTunesConnect, and rebuilt them using different identifiers but that did not help. I have also tried using the App Store app to really connect to the real App Store and download some apps so I do have connectivity. Finally, I have visited the Settings:Store app to make sure I am signed out of my normal app store account.

Any ideas?

-Rei

© Stack Overflow or respective owner

Related posts about iphone

Related posts about in-app-purchase