我在应用程序中添加了App购买功能。我们已经在iPhone上成功测试了它(在沙盒模式下)。成功测试后,我们将最终测试申请发送给位于其他国家的测试人员。
在奇怪的情况下,测试人员无法在App购买功能中进行测试。他收到“无效的产品ID”错误。我们正在为测试人员提供相同的构建,这对我们来说非常有效。除应用程序购买功能外,整个应用程序运行正常。
如果有任何猜测。
谢谢, Vimal Jain。
答案 0 :(得分:8)
(我直接从http://troybrant.net/blog/2010/01/invalid-product-ids/)
复制为了免除您在网上搜索错误原因所带来的痛苦,这里列出了我偶然发现的所有可能导致产品ID无效的清单。确保您对以下每个问题都回答“是”:
* Have you enabled In-App Purchases for your App ID?
* Have you checked Cleared for Sale for your product?
* Have you submitted (and optionally rejected) your application binary?
* Does your project’s .plist Bundle ID match your App ID?
* Have you generated and installed a new provisioning profile for the new App ID?
* Have you configured your project to code sign using this new provisioning profile?
* Are you building for iPhone OS 3.0 or above?
* Are you using the full product ID when when making an SKProductRequest?
* Have you waited several hours since adding your product to iTunes Connect?
* Are your bank details active on iTunes Connect? (via Mark)
* Check that your device is not Jailbroken
如果你对这些问题中的任何一个回答“否”,那就是你的问题。