测试应用内购买 Iphone [英] Testing In-App purchasing Iphone

查看:28
本文介绍了测试应用内购买 Iphone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为报亭编写一个免费订阅的应用程序,但在提出请求时,我使用的产品标识符总是返回无效集.

I am writing an app for newsstand with free subscription but the product identifier i am using always comes back in the invalid set when making the request.

我用过这个教程:http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/

我有:

1) 创建了一个 Appid (fsfe4.com.myapp.myappdesc)

1) created an Appid (fsfe4.com.myapp.myappdesc)

1a) 签署付费ios应用合同并填写银行/税务信息

1a) signed the paid ios app contract and filled in the banking/tax info

2) 将该 appid 作为包 id (com.myapp.myappdesc) 放入 plist

2) put that appid as the bundle id (com.myapp.myappdesc) in the plist

3) 下载开发者和分发配置文件(开发者文件没有​​通配符)

3) downloaded developer and distrubtion provisioning profiles (developer profile does not have wildcard)

4) 更新了代码签名标识(Debug 和Any IOS SDK"都让 iPhone 开发人员引用了我创建和下载的开发人员配置文件)

4) updated the code signing identity (both the Debug and 'Any IOS SDK' has the iPhone developer referencing the developer profile i created and downloaded)

5) 添加代码

6) 在 iTunes Connect 上为应用创建和添加信息(打开报亭,上传照片并填写所有信息)

6) created and added info for the app on itunes connect (turned newsstand on, uploaded photos and filled out all the info)

7) 编译并归档 xcode 项目,将其上传到 iTunes Connect,拒绝二进制文件.

7) compiled and archived the xcode project, uploaded it to itunes connect, rejected the binary.

8) 创建应用内购买(免费订阅),并将其附加到应用的查看详细信息"部分.

8) created the in app purchase (free subscription), and attached it in the 'view details' part of the application.

  • 我收到了这个通知:应用程序的第一个应用程序内购买必须在您提交应用程序版本的同时提交以供审核.您必须在版本详细信息"页面上执行此操作.上传二进制文件并提交第一个应用内购买以供审核后,可以使用下表提交其他应用内购买.请注意,免费的应用内购买订阅只能与为 Newsstand 启用的版本一起提交.我不完全确定这意味着什么.

9) 等了 24 小时

9) waited 24 hours

10) 再次尝试,但没有成功

10) tried again with no luck

我已经重新存档、上传并拒绝了我的应用几次.我没有更改 itunes connect 中的 # 版本,但我认为这无关紧要.

I have re-archived,uploaded and rejected my app a couple of times. I haven't changed the version # in itunes connect but i don't think that should matter.

根据 Apple 的指南,它特别指出我不应该上传二进制文件并拒绝它:

According to Apple's guide it specifically says that I should not have uploaded the binary and rejected it:

  • 重要在应用程序准备好接受 App Review 批准之前,请勿将开发二进制文件上传到 iTunes Connect.如果二进制文件存在于 iTunes Connect 中,但不存在功能齐全,App Review 将审查二进制文件并可能拒绝开发二进制文件.如果您或 App Review 拒绝您最近的应用程序内购买测试将失败iTunes Connect 中的二进制文件.在这种情况下的解决方法是上传一个没有应用内购买功能的二进制文件,这些功能可以通过 App Review 获得批准.二进制文件获得批准后,继续使用应用内购买功能测试二进制文件.
  • Important DO NOT upload the development binary to iTunes Connect until the application is ready for App Review approval. If the binary is present in iTunes Connect and it is not fully functional, App Review will review the binary and likely reject the development binary. Testing In App Purchase will fail if you or App Review reject your most recent binary in iTunes Connect. The workaround in this case is to upload a binary without In App Purchase features that can get approved by App Review. Once the binary is approved, resume testing the binary with In App Purchase features.

这与我看过的所有其他教程背道而驰.有没有办法删除二进制文件以使其恢复到预先上传的二进制状态,以便我可以进行测试?我应该删除应用程序并重新开始吗?如果我删除它,我可以使用相同的捆绑 ID 和相同的应用程序名称吗?

That goes against every other tutorial i have seen. Is there a way to remove the binary to get it back to the pre uploaded binary state so that I can test? should i just delete the app and start over? if I do delete it can I use the same bundle id and same app name?

推荐答案

问题是我没有从设备上删除应用程序并在我经历了 此处的清单.

The problem was that I didn't delete the app from the device and reinstall it after i had gone through the checklist here.

浪费了太多时间.叹气.

So much time wasted. Sigh.

这篇关于测试应用内购买 Iphone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆