沙盒测试账号:不允许创建 iTunes 账户

1.出现情况
img_73c45aa758b53a0fd82a5a48f0dc49d9.jpe
不允许创建 iTunes 账户.jpg

在设置里登陆沙盒账号提示:

不允许创建 iTunes 账户
此 Apple ID 目前无法用于 iTunes Store, 请稍后重试

正确方式:

沙盒测试账号只能在测试应用点击储值时,弹窗中输入账号,不能在设置里的 App Store 里添加。

苹果的文档也有说明,测试账号不能在设置里登陆 :

Important: Don’t enter your test account information in the Store settings panel. Doing so may invalidate your test account.

2. 正确的沙盒测试流程

To perform testing for in-app purchase products

  1. Set up test user accounts within Users and Roles in iTunes Connect, as detailed in Creating Sandbox Tester Accounts in iTunes Connect Developer Guide.
    You’ll need a test user for each territory you want to test the app in.

  2. Clear any account information stored on your test device.

  • In Settings, go to the Store settings.
  • Click the Sign Out button.
    This prevents an actual user account from automatically being used when testing.

Important: Don’t enter your test account information in the Store settings panel. Doing so may invalidate your test account.

  1. Connect your test device to your Mac.
  2. In Xcode, set your test device as your scheme’s destination.
  3. Open your app, and perform your in-app purchase product testing.
  4. Use your test account credentials to test the purchase.
    When your app uses the Store Kit API to request a payment, you’re asked to sign in. Select Use Existing Account and enter your test account user name and password. You are then asked to confirm the purchase. The transaction completes.
    No financial transaction takes place, but a receipt is generated for a successful transaction.

参考:


注:本文首发于 iHTCboy's blog,如若转载,请注明来源。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值