美文网首页iOS高质量博客
沙盒测试账号:不允许创建 iTunes 账户

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

作者: iHTCboy | 来源:发表于2017-10-27 08:33 被阅读1170次

    1.出现情况

    不允许创建 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,如若转载,请注明来源。

    相关文章

      网友评论

        本文标题:沙盒测试账号:不允许创建 iTunes 账户

        本文链接:https://www.haomeiwen.com/subject/njeduxtx.html