问题
I'm working with In App Purchase. I'm trying to get all my transactions from AppleStore. After request, I catch an error code:
request error Error Domain=SKErrorDomain Code=0 “Operation could not be completed. (SKErrorDomain error 0.)”
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
I have not even enter my user credentials. How to fix it? Whats a problem? Anybody know? PS: I'm testing it on iPad and iPhone devices - not Simulator. Thanx!

回答1:
You must logout from your iTunes account in the settings app. Then try again and use a test account. You can create them in the iTunes connect page.
来源:https://stackoverflow.com/questions/6664778/error-domain-skerrordomain-code-0-operation-could-not-be-completed-skerrordom