iPhone In-App Purchase Store Kit错误-1003“无法连接到iTunes Store” [英] iPhone In-App Purchase Store Kit error -1003 "Cannot connect to iTunes Store"

查看:272
本文介绍了iPhone In-App Purchase Store Kit错误-1003“无法连接到iTunes Store”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力添加应用内购买,并且能够使用Store Kit创建和测试应用内购买(是的!)。在测试过程中,我运用我的应用程序导致应用程序在购买过程中崩溃(所以我猜接收paymentQueue的正常循环:updatedTransactions并调用finishTransaction被中断)。

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).

现在我无法成功完成任何交易,而是在调用paymentQueue:updatedTransactions时只获得transactionState SKPaymentTransactionStateFailed的交易。

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

transaction.error.code是 - 1003和transaction.error.localizedDescription是无法连接到iTunes Store!

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

我尝试从iTunesConnect中删除所有产品,并使用不同的标识符重建它们,但是没有帮助。我也尝试使用App Store应用程序真正连接到真正的App 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.

推荐答案

我有类似的情况,并倾销iPhone的网络流量,看看发生了什么。我发现联系了普通商店而不是沙箱。它有助于从设备中删除应用程序,清理并再次构建/安装它。显然,开发配置文件出错了。

I had a similar situation and dumped the iPhone's network traffic to see what's going on. I found that the normal store was contacted instead of the sandbox. It helped to delete the app from the device, make clean and build/install it again. Apparently something with the development profile had gone wrong.

更新要转储非越狱iPhone的网络流量,只需使用互联网共享在Mac上并配置iPhone以使用Mac的WiFi。然后Mac上的 tcpdump -n -i en1 就可以解决这个问题。

Update: To dump the network traffic of a non-jailbroken iPhone, just use Internet Sharing on your Mac and configure your iPhone to use your Mac's WiFi. Then tcpdump -n -i en1on your Mac will do the trick.

这篇关于iPhone In-App Purchase Store Kit错误-1003“无法连接到iTunes Store”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆