Disable re-signing of Enterprise distributed apps for XCUI tests
Disable re-signing of Enterprise distributed apps to test features like push notifications and universal links in your XCUI tests on BrowserStack App Automate.
If you upload your app to BrowserStack servers using our REST API, we re-sign the app with our own provisioning profile to be able to install your app on our devices during test execution. This process removes the entitlements from your iOS app.
However, if your app is already signed using the Apple Developer Enterprise Program, you can disable this behavior to test features such as push notifications and universal links on BrowserStack devices. To do so, use the resignApp parameter and set it to false in the REST API request while executing your XCUI test suite. Here is an example cURL request to demonstrate this:
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/xcuitest/v2/build" \
-d '{"devices": ["iPhone X-11"], "app": "<app_url>", "testSuite": "<test_suite_url>",
"resignApp":"false"}' \
-H "Content-Type: application/json"
Webviews do not work with resignApp option set to false.
Related topics
-
Manage your uploaded app or test suite using our upload app REST API and upload test suite REST API.
-
Use the get app API endpoint and list test suites API endpoint to list your recently uploaded apps and test suites.
-
Delete your uploaded app or test suite using the delete app API endpoint and delete test suite API endpoint.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!