应用内购买不再有效

发布于 2024-11-26 01:32:34 字数 1163 浏览 0 评论 0原文

我最近(两周前)成功测试了一些 iPad 产品的应用内购买功能。

Apple 更新其许可协议后,它不再在我的 iPad 上运行。

即使同意此协议后,该功能也无法运行。我读了一些帖子(post1post2post3)并发现,其他人也遇到过这个问题。我尝试了帖子中描述的所有内容,但没有任何效果对我有用。我硬重置了ipad(设置->重置设置和数据),我重建了几次,我查看了开发者论坛,如果有发布任何问题,..

它可以成功检索产品数据,但是当付款被添加到默认付款队列时,TransactionObserver 中将返回以下错误: Error Domain=SKErrorDomain Code=0 UserInfo=0x2e09e0“无法连接到itunes store”

我在其他iPhone上测试了相同的功能并且它有效(只需将类从iPad项目复制到iPhone项目并创建dev.prov.配置文件) 。

为了完全了解我的情况,我必须更新我的开发帐户,但我不小心更新了我的证书。所以我创建了一个新的省。我的应用程序的配置文件。

我在另一台 iPad 上测试了它,但也不起作用。我还创建了一个新的provi。配置文件和一个新产品,清除所有并重建它以在ipad上测试它,但它总是返回相同的错误。

看来问题出在我的 iPad 项目中,但我能做什么呢?我从 Apples StoreKit Guide 复制了源代码并对其进行了一点修改,以便它可以使用我们的服务器管理购买。我还更改了代码签名标识(项目和目标)以使用正确的开发人员构建它。省轮廓。但我还能做什么呢?

请帮忙!

谢谢& BR 尼克

I've recently (2 weeks ago) tested successfully the In-App Pruchase functionality with some iPad products.

After Apple has updated its License Agreement, it didn't work anymore on my iPad.

Even after agreeing this agreement, the functionality doesn't work. I read some posts (post1, post2, post3) and found out, that others came across this issue too. I tried everything described in the posts but nothing worked for me. I hard-resetted the ipad (Settings -> reset settings & data), i rebuild it a few times, i looked at the developer forum, if there where any issues posted, ..

It can successfully retrieve the product data, but when a payment will be added to the default payment queue following error is being returned in the TransactionObserver:
Error Domain=SKErrorDomain Code=0 UserInfo=0x2e09e0 "Cannot connect to itunes store"

I tested the same functionality on other iPhones and it worked (simply copied the classes from the iPad project to the iPhone project and created the dev. prov. profile).

To completely understand my situation, i had to renew my dev account and there i accidently renewed my certificate. So i created a new prov. profiles for my apps.

I than tested it on another iPad but it also didn't work. I also created a new provi. profile and a new product, cleard all and rebuilt it to test it on the ipad, but it always keeps returning the same error.

So it seems that the problem is in my iPad project, but what can i do? I copied the source code from Apples StoreKit Guide and modified it (a little bit) so it can manage the purchases with our server. I also changed the code sign identity (project and target) to build it with the correct dev. prov. profile. But what else can i do?

Please help!

Thanks & BR
Nic

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

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

发布评论

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

评论(2

等待我真够勒 2024-12-03 01:32:34

您的配置文件是为 inapp 制作的吗?

有时Apple沙盒服务器会响应错误,但不会持续很长时间。

在沙盒中购买之前,您是否在 iPad 设置中从 iTunes 帐户中注销?

Your provisoning profile is made for inapp ?

Sometimes the Apple sandbox server respons error but not during long period.

Are you unlog from your iTunes account in the iPad setting befor buy in your sandbox?

美人骨 2024-12-03 01:32:34

现在可以了!这有点不寻常,但它确实有效!

  1. 我查看了配置文件。该证书未选中,因此我重新检查、下载并安装(双击)它

  2. 从我的 iPad 中删除了应用程序和所有已安装的配置文件

  3. 在项目(应用程序的上一个版本)的最后一手中设置代码签名标识符(在目标和项目设置中)并重建(清除所有,构建)它

  4. 设置当前项目的代码签名标识符并重建它

并且应用程序购买中的测试有效。

希望它对任何人都有帮助!

BR
尼克

Now it works! It was a little bit unusual but it works!

  1. I reviewed the provisioning profile. The certivicate was unchecked, so I rechecked it, downloaded it and installed (double clicked) it

  2. Deleted the app and all installed porvisioning profiles from my ipad

  3. Set the code signing identifier (in the target and the project setting) in the last hand in project (prev. version of the app) and rebuilt (clear all, build) it

  4. Set the code signing identifier of the current project and rebuilt it

And the test in app purchase worked.

Hope it helps anyone!

BR
Nic

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