测试应用内购买时出现 SKErrorUnknown
我正在努力为一个项目实施应用内购买,除了实际的测试购买之外,一切都很顺利: - 我在 iTunes 中创建了该应用程序(唯一 ID,提交了二进制文件,然后拒绝了它,因为这不是最终版本) - 创建应用内购买项目 - 实施代码 - 创建了测试帐户
正在运行的内容: - 我从商店购买了有效产品 - 我收到“确认您的订阅...”弹出窗口 - 我收到“分享您的信息...”弹出窗口 - 然后我收到此错误:Code=0“无法连接到 iTunes Store”(SKErrorUnknown)
有人对此有任何想法吗? (我已经用谷歌搜索了两天......似乎没有任何效果)。
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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.