应用内购买错误 0
我遇到了一个问题,我不知道如何解决它。请帮忙!
当我的应用程序尝试在沙箱中购买时,它总是收到错误 SKErrorUnknown。我已经尝试过这些线程中提到的方法,但对我不起作用:
Apple 应用内购买
测试应用内购买时出现 SKErrorUnknown
https://stackoverflow.com/questions/7670739/in-app-purchase-error-solving< /a>
我在谷歌上搜索但仍然没有帮助。
有谁知道如何修复它?
- 应用程序可以成功从AppStore获取产品。
- 出现确认对话框。
- 单击“购买”按钮后,应用程序收到错误。
- 错误的描述是“无法连接到 iTunes Store”。
- 我使用的是XCode4.2
I got a problem that I don't know how to fix it. Please help!
When my app tries to purchase in sandbox, it always receives the error SKErrorUnknown. I have tried the ways mentioned in these threads but not work for me:
Apple In-App Purchase
SKErrorUnknown while testing in-app purchase
https://stackoverflow.com/questions/7670739/in-app-purchase-error-solving
I searched on google but still no help.
Does anyone know how to fix it?
- The app can get the product from AppStore successfully.
- The confirm dialog appears.
- After I click the "Buy" button, the app receives the error.
- The description of the error is "Cannot connect to iTunes Store."
- I'm using XCode4.2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
经过我一整天的搜索和尝试,终于@orazran给了我答案:
只需创建一个新的测试帐户即可。
如果有人再次遇到此问题,请先尝试这个简单的步骤。
After I searched and tried for a whole day, finally @orazran gave me the answer:
JUST CREATE A NEW TEST ACCOUNT.
If anyone meets the problem again, please try this simple step first.
您是否创建了新的测试用户? iTunes 连接 ->管理用户->测试用户?正确的?进一步做什么?
Did you create a new Test User? iTunes Connect -> Manage Users -> Test User? Right? What to do further?
这个问题我找了好久,最后看了文档和API参考:
常量
SK错误未知
表示发生未知或意外错误。
适用于 iOS 3.0 及更高版本。
SK错误客户端无效
指示不允许客户端执行尝试的操作。
适用于 iOS 3.0 及更高版本。
SK错误付款已取消
表示用户取消了付款请求。
适用于 iOS 3.0 及更高版本。
SK错误支付无效
表示Apple App Store 无法识别其中一项支付参数。
适用于 iOS 3.0 及更高版本。
SK错误付款不允许
表示不允许用户授权付款。
适用于 iOS 3.0 及更高版本。
SKErrorStoreProductNotAvailable
表示商店中没有所请求的产品。
适用于 iOS 6.0 及更高版本。
I searched this question for a long time,finally,I watched the Documentation and API Reference:
Constants
SKErrorUnknown
Indicates that an unknown or unexpected error occurred.
Available in iOS 3.0 and later.
SKErrorClientInvalid
Indicates that the client is not allowed to perform the attempted action.
Available in iOS 3.0 and later.
SKErrorPaymentCancelled
Indicates that the user cancelled a payment request.
Available in iOS 3.0 and later.
SKErrorPaymentInvalid
Indicates that one of the payment parameters was not recognized by the Apple App Store.
Available in iOS 3.0 and later.
SKErrorPaymentNotAllowed
Indicates that the user is not allowed to authorize payments.
Available in iOS 3.0 and later.
SKErrorStoreProductNotAvailable
Indicates that the requested product is not available in the store.
Available in iOS 6.0 and later.
我新创建的 sandox 帐户也遇到了同样的问题。我刚刚从我的 iPhone 上断开了我的真实 iTunes 帐户
并连接我的沙盒帐户
I had the same problem with my new created sandox account. I just disconnected my real itunes account from my iphone in
and connected my sandbox account in