Error Domain=SKErrorDomain Code=3 UserInfo=0x2a5a00“无法连接到 iTunes Store”

发布于 2024-09-01 10:33:11 字数 503 浏览 5 评论 0原文

我正在尝试在我的应用程序中实现应用内购买。 我已经按照 Apple 的编程指南实现了它 并且代码工作正常,直到我创建了一个新的应用程序、应用程序 ID、配置文件和应用程序内产品@另一个开发人员帐户。现在,它给了我以下错误。

Error Domain=SKErrorDomain Code=3 UserInfo=0x2a5a00“无法连接到 iTunes Store”

如果我使用以前的开发者帐户的 appid、专业证书和产品 ID,则相同的代码可以正常工作。 这是一个非常奇怪的问题,我仔细检查了产品 ID 名称和其他内容仍然面临相同的错误。 有什么线索吗..?

I am trying to implement in-app purchases in my application.
I have implemented it as per Apple's Programming Guide and the code was working fine until I created a new application, App ID, provisioning profile and in-app products @ another developer account. Now, it gives me following error.

Error Domain=SKErrorDomain Code=3 UserInfo=0x2a5a00 "Cannot connect to iTunes Store"

The same code works fine if I use previous developer account's appid, pro-certificate and product ids.
This is a very strange issue, I double checked product id names and other things still facing same error.
Any clue..?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

双手揣兜 2024-09-08 10:33:11

更新:查看这篇文章并添加您的投诉,以便苹果能够采取行动解决此问题。

iPhone storekit 沙盒停止工作

此处接近相同的情况 - 使用 iPad

我的应用内购买功能正常运行。挺好的,该做的都做了。然后我开始收到错误 Domain=SKErrorDomain Code=2 UserInfo=(someHexMemoryAddress) “无法连接到 iTunes Store”

阅读一篇文章以重置所有内容和设置 - 这样做了但不起作用。

尝试在 iTunes 中创建一个新的测试用户 - 没有成功。

确保项目构建设置中的代码签名身份设置为使用所有应用内内容创建的正确配置文件。它实际上不是,并且以某种方式设置为任何兼容的配置文件。我将其更改为正确的配置文件。但这也不起作用。

仍然有同样的问题。

在它工作和不工作之间,我真正做的唯一一件事就是实施 Facebook Connect。一件有趣的事情是委托方法 -

  • (void)request:(FBRequest*)request didFailWithError:(NSError*)error;

它也作为 SKRequestDelegate 的委托方法被调用。我不认为这会引起冲突,因为只有在出现错误时才会调用它。

我仍然可以联系商店并获取可用产品列表。当我发送购买请求时,我收到一条回复,告诉我 - 您已经购买了此应用内购买,但尚未下载。我单击“确定”,然后收到 Error Domain=bla bla bla 。

有趣的是,即使是在我创建的新测试用户第一次购买该商品时,我也确实收到了有关先前购买的对话框。

我学到的另一件事是,如果您创建了测试用户,然后在“设置”应用程序中登录,并且它要求您提供信用卡,则它将无法工作。

你需要——
1.创建一个新的测试用户,
2. 在商店设置中注销所有帐户。
3. 然后在您的应用程序中进行购买,它会要求您使用现有用户登录。
4. 使用您创建的新测试用户登录,它将起作用。

Update: Check out this post and add your complaint so apple will get a move on fixing this issue.

iPhone storekit sandbox stopped working

Close to the same thing here - Using iPad

I had my inApp purchase working. It was fine, did everything it was supposed to. Then I started getting the Error Domain=SKErrorDomain Code=2 UserInfo=(someHexMemoryAddress) "Cannot connect to iTunes Store"

Read on one post to reset all content and settings -- Did that and didn't work.

Tried creating a new Test User in iTunes -- Didn't work.

Made sure my Code Signing Identity in the Project Build Settings was set to the correct Profile that was created with all the inApp stuff. It actually wasn't, and was somehow set to any compatible Profile. I changed it to the correct profile. This didn't work either though.

Still having the same problem.

Between the time it was working and then not working, the only thing I really did was implement Facebook Connect. One interesting thing there is the delegate method -

  • (void)request:(FBRequest*)request didFailWithError:(NSError*)error;

which also gets called as a delegate method to SKRequestDelegate. I don't think this is causing a conflict because it is only getting called when there is an error.

I am still able to contact the store and get a list of available products. When I send a purchase request I get a response telling me- You've already purchased this In App purchase but it hasn't been downloaded. I click ok and then I get the Error Domain=bla bla bla .

Interestingly, I did get the dialog about previous purchase even when purchasing the item for the first time with the new test user I created.

Another thing I learned is this, IF you made the Test User, and then Signed In in the Settings App, and it asked you for a credit card, it wont work.

You need to -
1. create a new Test User,
2. sign out of all accounts in the Store settings.
3. Then go make make a purchase IN your app and it will ask you to log in with existing user.
4. Log in with the new Test User you created and it will work.

神回复 2024-09-08 10:33:11

在开始测试阅读之前,您应该阅读此技术说明:http:// /developer.apple.com/library/ios/#technotes/tn2009/tn2259.html 项目:“下一步是什么?”第11点.

iTunes服务器出现此行为的另一个可能原因是该产品的交易未完成。上次交易未完成时,您不能再次购买产品。

此致,
瓦迪姆

Before you start to test read you should read this technical note: http://developer.apple.com/library/ios/#technotes/tn2009/tn2259.html item: "What's Next?" point 11.

Another possible reason of this behavior of iTunes server is unfinished transaction for this product. You cannot buy product again while previous transaction is not finished.

Best Regards,
Vadim

你好,陌生人 2024-09-08 10:33:11

我有一个与此类似的错误。问题是
1. 没有可以处理应用内购买的配置文件设置
2. 没有在 iTunes Connect 中创建应用程序配置文件
3. 没有在 iTunes Connect 中创建应用内购买项目

在我设置了上述 3 件事并在签署应用程序时使用了新的配置文件后,我就很开心了。

I had an error similar to this. The issue was
1. not having a provisioning profile setup that could handle in app purchases
2. not having created the app profile in iTunes Connect
3. not having created the in app purchase items in iTunes Connect

After I setup the above 3 things and used the new provisioning profile when signing the app I was golden.

池木 2024-09-08 10:33:11

在我的第一个应用内购买应用程序 O 也遇到了相同的错误,但 Code=0.ie

Error Domain=SKErrorDomain Code=0 UserInfo=someHEXno“无法连接到 iTunes Store”

我尝试解决连接问题几个小时。

但主要问题是我的产品标识符名称,即我写的:

SKProductsRequest *productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObject:@"productnameID"]];

但“产品名称ID”是错误的。提供正确的productnameID后程序仍然显示相同的错误

Error Domain=SKErrorDomain Code=0 UserInfo=0x2a5a00“无法连接到 iTunes Store”

但它运行正常并显示购买警报框。

In my first in-app-purchase app O was also getting same error BUT with Code=0.i.e.

Error Domain=SKErrorDomain Code=0 UserInfo=someHEXno "Cannot connect to iTunes Store"

I tried to solve the connecting problem for hours.

But main problem was my productIdentifiers name i.e. I had written:

SKProductsRequest *productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObject:@"productnameID"]];

but the "productnameID" was wrong. After giving right productnameID program was still showing same error

Error Domain=SKErrorDomain Code=0 UserInfo=0x2a5a00 "Cannot connect to iTunes Store"

Yet it was running properly and show alert box for purchase.

撩动你心 2024-09-08 10:33:11

我在我的应用程序中遇到了与 iPhoneBuddy 相同的错误:

错误域=SKErrorDomain代码=0 UserInfo=0x2a5a00“无法连接到
iTunes 商店”

感谢 user495729 的回答我解决了问题!

http:// developer.apple.com/library/ios/#technotes/tn2009/tn2259.html

2- 在沙箱环境中测试您的应用程序。 iOS 开发人员必须完成以下步骤: 在
您的测试设备上的设置应用程序。设置运行目的地
在 Xcode 中将应用程序加载到 iOS 设备。构建并运行您的
来自 Xcode 的应用程序。

在您的设备中,转到“系统 -> iTunes 和 App Stores”,单击您的 Apple ID 并退出。现在运行您的应用程序并测试您的 IAP,使用您的测试用户登录。

如果您没有创建任何测试用户,请转到“iTunes Connect -> 管理用户 -> 测试用户 -> 添加新用户”,就可以了!

I had the same error as iPhoneBuddy in my app:

Error Domain=SKErrorDomain Code=0 UserInfo=0x2a5a00 "Cannot connect to
iTunes Store"

Thanks to user495729 answer I solved the problem!

http://developer.apple.com/library/ios/#technotes/tn2009/tn2259.html

2- Test your application in the sandbox environment. iOS developers must complete the following steps: Sign out of the Store in the
Settings application on your testing device. Set the run destination
of your application to an iOS Device in Xcode. Build and run your
application from Xcode.

In your device go to "System -> iTunes & App Stores", click on your Apple ID and Sign Out. Now run you application and test your IAPs, login with your Test User.

If you don't have any Test User created go to "iTunes Connect -> Manage Users -> Test User -> Add New User" and you are Ok!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文