Skip to main content

Testing Integration

Using the advantage of the TestFlight you can upload a beta build of your app or App Clip to App Store Connect. Testers will use the TestFlight app to install your app and provide feedback.

Distributing Your App for Beta Testing#

After you thoroughly test your app in Xcode, distribute it to beta testers or release it to users to run on their personal devices.

Important Note:#

If you want to distribute your app to registered devices, to beta testers using TestFlight, or through the App Store, you need to join the Apple Developer Program.

  • Create an Archive of Your App#

    To use any of the distribution methods, you first create an archive of your app. An archive is a build of your app, including debugging information, that Xcode stores in a bundle. to prepare an archive go throw Product => Archive.

    test_integration_1

    When Xcode done the archiving the following window will open and you can see your archive build file.

    test_integration_2

    Note:#

    You can open the Archives organizer directly by choosing Window > Organizer.

  • Upload to the AppstoreConnect#

    In the Archives organizer, select the archive, then click Distribute App. In the next sheet, select a distribution method App Store Connect.

    test_integration_3

    After you click next and manage sign options click on Upload button and wait Xcode to upload the build to the App Store Connect.

    Note:#

    Uploading a build to the App Store Connect will take some time to process be wait until you recive an email from the appstore.

  • Distribute a Beta Version#

    After you recive a notification from the appstore about the build processing completion.

    • Login to the appstore Connect with your account.

    • Go to my apps and select yor app.

    • Switch to the TestFlight tab.

      you will see the last build that you have submitted on the top of the builds. Complete the Missing Compliance if available than click start internal testing.

      test_integration_4
  • Internal testers#

    You can designate up to 100 members of your team who hold the Account Holder, Admin, App Manager, Developer, or Marketing role as beta testers. You can also create multiple groups and add different builds to each one, depending on which features you want each group to focus on.

    test_integration_5
  • External Testers#

    click Add External Testers from the menu on the left. App Store Connect asks you to create a new testing group. It’s up to you how you choose to manage your groups. You can have one group for all your testers, different groups for different types of testers or different groups for different apps.

    test_integration_6

Note:#

To submit external testing, first click Test Information from the menu on the left and fill in the necessary information.

Click on add group and enter the name of the group once the group is created click on it and on the left side got to Testers section for adding testers. You can choose between adding new testers manually, adding existing testers or importing testers from a CSV file.

Sandbox Configurations#

  • Apple Sandbox#

Use the Apple sandbox environment to test your implementation of in-app purchases that use the StoreKit framework on devices with real product information from App Store Connect. Your development-signed app uses the sandbox environment when you sign in to the App Store using a Sandbox Apple ID.

  • Create a Sandbox Apple ID#

  • From Users and Access, click Testers under Sandbox.

    test_integration_7
  • Click the Add icon (+).

  • Enter the tester information, then click Invite.

Note:#

Make sure that the email you enter is not a valid Apple Id otherwise it will not considered as a sandbox account.

Account information cannot be edited once a Sandbox Apple ID is created.

  • Appmate Sandbox#

    Use the Appmate sandbox to test your implemetion of AppmateSDK with a real products created on Appmate console. Appmate frameWork uses the sandbox environment when you use a user registered as a sanbox from the apmate console.

  • Create Appmate Sandbox User#

    • Login to Appmate Consol.

    • From Application bar switch to your App.

    • From the left side bar navigate to Sandbox.

    • Enter your user to the top textbox and hit Create.

      test_integration_8
  • From your app you have to set User id as your sandbox user.

PurchaseClient.shared.setUserId("<SANDBOX_USER>")