Error Domain=SKErrorDomain Code=0 “Operation could

2019-02-16 10:13发布

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!

enter image description here

1条回答
beautiful°
2楼-- · 2019-02-16 10:31

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.

查看更多
登录 后发表回答