iOS 13-如何登录应用内购买沙盒帐户? [英] iOS 13 - How to login in in-app purchase Sandbox account?

查看:744
本文介绍了iOS 13-如何登录应用内购买沙盒帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要使用iOS 13测试我的应用内购买商品,我必须将其中一台测试设备更新为iOS 13.1 beta.

In order to test my in-app purchases with iOS 13 I have to update one of my test devices to iOS 13.1 beta.

在iOS 12上,在Settings/iTunes & App Store/Sandbox Account中没有特殊的沙箱登录之前:

On iOS 12 and before there was a special Sandbox login in Settings/iTunes & App Store/Sandbox Account:

但是,在更新到iOS 13之后,此部分丢失了.我试图按照答案中的说明在iOS 12上遇到类似问题,但没有任何效果.我完全重置了设备并在Settings/iTunes & App StoreSettings/Apple ID处都注销了,因此当前该设备未连接到任何帐户(真实帐户或沙箱).至少据我所知.

However, after the update to iOS 13 this section is missing. I tried to follow the instruction in the answer to a similar problem on iOS 12 but nothing worked. I completely reset the device and logged out both at Settings/iTunes & App Store and at Settings/Apple ID, so currently the device is not connected to any account (real or sandbox). At least as far as I can tell.

我已使用Xcode 11 beta在设备上重新安装了我的应用程序,并尝试执行应用程序内购买. 商店显示一个登录提示,表明这是一个沙盒购买.但是,提示仅要求输入密码,而不要求用户名或Apple ID.因此,我不知道应在此处使用哪个帐户.

I have re-installed my app on the devices using Xcode 11 beta and tried to perform an in-app purchase. The store shows a login prompt which shows that this is a Sandbox purchase. However, the prompt only asks for the password, not for a username or Apple ID. So I have no idea which account should be used here.

使用新创建的测试用户帐户的密码时,密码未知.我可以使用我的真实Apple ID帐户的密码,该密码在设备设置过程中使用过,然后断开连接.

When using the password of a newly created test user account the password is not known. I can use the password of my real Apple ID account which was used during the device setup and was then disconnected.

那么,如何连接到iOS 13中的特定沙箱帐户?

推荐答案

这对我有用(在运行iOS 13.3的专用开发iPhone 6s上).

Here's what worked for me (on a dedicated development iPhone 6s running iOS 13.3).

  1. 退出 iTunes&应用商店
  2. 退出 iCloud
  3. 在设备上运行应用,然后单击以购买商品.
  4. 在提示您输入ID/密码时,输入Sandbox Tester凭据.
  1. Sign out of iTunes & App Stores
  2. Sign out of iCloud
  3. Run app on device, and click to purchase an item.
  4. When prompted for an ID/Password, enter the Sandbox Tester credentials.

花费了几次输入凭据,但是在应用内购买"对话框中的警报确实表明环境为沙箱".

It took entering the credentials a couple of times, but the In App purchase dialog alert did say the environment was Sandbox.

恢复正常"(即不再要求我登录并处理 SKPaymentTransation )之后,我便可以转到 iTunes& 常规设置"中的"App Stores" ,滚动到底部,现在出现了沙箱帐户",其中显示了测试者帐户.

After it "made good" (that is, stopped asking me to log in and processed the SKPaymentTransation), I was able to go to iTunes & App Stores in the General Settings, scrolled to the bottom, and now the Sandbox Account appears with the tester account showing.

现在,当我运行该应用程序并单击该按钮以购买内容时,它只要求输入测试者密码.

Now when I run the app and click the button to purchase content, it just asks for the tester password.

希望这对其他人有帮助.

Hopefully this helps others.

这篇关于iOS 13-如何登录应用内购买沙盒帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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