iOS 应用内购买项目不会在产品中返回,而仅在沙箱中的 invalidProductIdentifiers 中返回。如何调试?

发布于 2024-12-06 06:57:39 字数 654 浏览 3 评论 0原文

我正在将应用内购买添加到我的应用程序中。我已遵循 Apple 在此概述的所有步骤(http://developer.apple.com/library/ios/#technotes/tn2259/_index.html 特别参见 Q&A #6)以及应用内编程指导。

问题是,当我在测试 iPod Touch 上进行测试期间发送产品请求时,响应将其显示在 invalidProductIdentifiers 中,而不是有效的产品。

我的应用程序确实有一个特定的非通配符应用程序 ID。

我用来签署应用程序的个人资料中明确包含应用程序 ID,并且不使用通配符。

应用内购买项目是标准的非消耗性非订阅项目(启用增强功能)。我将其添加到商店中作为我的应用程序的应用程序内项目。它已准备好出售。 (处于“等待屏幕截图上传”状态)。

我从 iTunes Connect 复制并粘贴了应用程序内项目 ID,并将其粘贴到我的应用程序中,以确保我没有拼写任何错误。

我在 StackOverflow 上进行了搜索,并使用 Bing 和 Google 寻找有关如何诊断此问题的线索,基本上所有答案都是检查应用程序 ID、项目 ID、签名配置文件等。

没有返回任何错误,并且产品请求成功完成,因此没有要查询的 NSError 对象。

如何诊断问题并进行调试?

谢谢

I am adding in-app purchasing to my app. I have followed all the steps that Apple outlines here (http://developer.apple.com/library/ios/#technotes/tn2259/_index.html see Q&A #6 especially) as well as in the In-App Programming Guide.

The problem is that when I send a product request in during testing on my test iPod Touch, the response shows it in the invalidProductIdentifiers and not a valid product.

My App does have a specific non wild card App ID.

My profile I am using to sign the app has the App ID explicitly in it and does not use a wild card.

The in-app purchase item is a standard non-consumable non-subscription item (enabling enhanced functionality). I added it in the store as an in-app item for my app. It has been set to be cleared for sale. (It is at state "waiting for screen shot upload").

I copied and pasted the in-app item id from iTunes Connect and pasted it into my app to make sure that I did not spell anything wrong.

I have searched on StackOverflow and using Bing and Google for clues on how to diagnose this problem and basically all the answers were to check the app id, item id, signing profile, etc.

No error is being returned and the product request successfully completes so there is no NSError object to query.

How can one diagnose the problem and debug this?

Thanks

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

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

发布评论

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

评论(3

尬尬 2024-12-13 06:57:39

要检查您没有提到的一件事:您是否通过使用通过 USB 连接的设备从 Xcode 运行来安装构建版本?您无法使用临时部署连接到沙盒存储。

如果您还没看过,请查看 Troy Brandt 的无效产品详尽列表ID问题

One thing to check that you didn't mention: Did you install the build by running from Xcode with your device connected via USB? You can't connect to the sandbox store using an ad hoc deployment.

If you haven't already, take a look at Troy Brandt's exhaustive list of invalid product ID issues.

谁与争疯 2024-12-13 06:57:39

删除了该应用程序。在我的例子中它立即起作用了!

Deleted the app. It worked instantly in my case!

两相知 2024-12-13 06:57:39

我刚刚找到了一种快速解决无效产品 ID 问题的方法,至少在我尝试了 Troy Brandt 的无效产品 ID 问题的详尽列表之后,至少对我来说是这样,但仍然得到 4 个无效产品 ID 中的 2 个。解决方案是删除所有 IAP 并使用不同的 IAP、全新的参考 ID 和产品 ID 重新启动,然后我删除了测试设备中的应用程序。在这些之后,一切都正常了。苹果应该为让 IAP 如此难以实施而感到羞耻。

I just found a quick way to solve the invalid product ID problem, at least to my case after I've tried Troy Brandt's exhaustive list of invalid product ID issues, but still get 2 invalid product ids out of 4. The solution is to delete all IAP and restart with different IAPs, withe brand new reference IDs and product IDs, then I deleted the app in testing device. After these, everything worked. Apple should be shamed to make IAP so difficult to implement.

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