Skip to content
Testsigma DOCS

Configuration

Configuring Local iOS Device with Provisioning Profile


Testsigma allows you to seamlessly test your applications on local iOS devices as well as on Testsigma Cloud machines. To achieve this, you need to properly configure your provisioning profiles or WebdriverAgent (WDA) on the Testsigma platform. This guide provides the step-by-step process for configuring your provisioning profiles and troubleshooting any potential errors encountered within Testsigma.


Prerequisites

Before you begin, ensure that:


Follow these steps to generate a Certificate Signing Request (CSR) and upload it to the Apple Developer portal to run Testsigma tests on your local iOS device:

  1. Navigate to Settings > iOS Settings. iOS Settings

  2. In the iOS Settings screen, under the Provisional Profile tab, click + Create new profile. iOS Setting in Testsigma

  3. Enter a name for the profile in the Profile Name field. Profile Name

  4. Click Generate Request to create a Certificate Signing Request (CSR), and then click Download Request to save the CSR file. Generate CSR and Download

  5. Visit the Apple Developer portal and go to the Certificates, Identifiers & Profiles section and click the + icon next to Certificates.
    Apple Developer Website

  6. In the Create a New Certificate screen, select iOS App Development under Software and click Continue. Select iOS App Developer

  7. Upload the CSR file downloaded from Testsigma, click Continue. Upload CSR file

  8. In the Download your certificate screen, click Download to download the certificate file from the Apple Developer Portal. Download Certificate from Apple

  9. In Testsigma, click Upload Signed file under Upload Certificate and select the downloaded certificate file. Upload CSR file in Testsigma

  10. Go back to the Apple Developer Portal and navigate to the Certificates, Identifiers & Profiles > Profiles section click the + icon next to Profiles. Select Profiles in Apple Portal

  11. In the Register a New Provisioning Profile screen, select iOS App Development under Development and click Continue. Select iOS App Developer and click continue

  12. Click the drop-down menu under Select an App ID section, select an App ID, and click Continue to proceed to the next step. Select App ID from Profiles

  13. Select the certificates that you wish to include in the provisioning profile and click Continue. select certificate

  14. Select the Devices that you want to include in this provisioning profile and click Continue. select devices

  15. Enter a name for your Provisioning Profile and click Generate. Generate Provisioning Profile

  16. Click Download to download the Provisioning Profile from the Apple Developer Portal. Download Certificate from Apple

  17. In Testsigma, click Upload Certificate next to Provisioning Profile and select the downloaded Provisioning Profile file and click Create. Upload Provisioning Profile

You can further manage your certificates by downloading CSR and Provisioned certificates for viewing and checking the validity of the Provisioning Profile certificate. If necessary, you can remove Provisioning Profile certificates by clicking Delete.

Now that you have set up everything, you can record your iOS tests and run them on your iOS device(s).


ErrorTroubleshooting
Invalid certificate uploaded, please upload a valid certificate.Check that you have uploaded the correct certificate and it is not corrupted. Ensure you have generated the certificate using the CSR generated in the iOS Settings Profile in Testsigma.
Certificate uploaded is not included in this provisioning profile.Ensure that you select the correct certificate and provisioning profile for the device. When creating the provisioning profile, you should use the same certificate uploaded in iOS Settings in Testsigma.
Upload is not resignedThe upload is being re-signed. Once the re-signing process is complete, you can select it after a few minutes. You can track the status of the re-signing process in the Provisioning Profile Details dialogue in the configured iOS Settings Profile.
Device initializingThe Testsigma Agent sets up the device and shows errors during setup in the Devices tab on the Agent details page.