SKErrorUnknown while testing in-app purchase

戏子无情 提交于 2019-12-08 07:48:56

问题


I am working to implement in-app purchase for a project and everything went well except the actual test purchase: - I created the app in iTunes (unique ID, submited a binary, then rejected it because this is not the final one) - created the in-app purchase items - implemented the code - created the test account

What is working: - I got a valid product from store - I got the "Confirm your subscription..." popup - I got the "Share your information ..." popup - and then i got this error: Code=0 “Cannot connect to iTunes Store” (SKErrorUnknown)

Does anyone have any idea on this one ? (I've been googling for two days ... and nothing seems to work).

Thanks.


回答1:


I think I've found my problem:my app was enabled only for Romania, my test user was localized for Romania - and with this setup does not work.

I've enabled the app for USA and created a test user localized in USA and it seems to work (no code change at all). And I think that proves that the code is ok, just the apple sandbox has some problems with non USA test users.



来源:https://stackoverflow.com/questions/7495739/skerrorunknown-while-testing-in-app-purchase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!