If you're testing an app on an iOS Simulator you may run into an error like:
ERROR Selenium Server stopped responding
or:
Bad app. App paths need to be
absolute, or relative to the appium server install dir, or a URL to compressed
file, or a special app name
.
If you're seeing anything like that once the session tries to start you may need to re-evaluate how you're building your application.
Requisites for building app
Make sure that you are building your application for the correct platform.
The best way to do this is to follow the instructions set out here:
https://support.saucelabs.com/hc/en-us/articles/360046918034
Troubleshooting
If the instructions above didn't help or you already have an .app/.zip file and want to verify whether it's for the correct platform or not you can follow the steps below.
- Test your .app/.zip output on a local iOS Simulator. Make sure you use the same .zip/.ipa file you would upload to Sauce! Does it run on a generic iOS Simulator? Not a real iOS device!
- If your file is zipped, unzip it and you should see a .app file inside.
- Right click the .app and select "Show Package Contents". This should take you to a directory that, among other things, should contain an Info.plist file.
- Inside the Info.plist file you should see a Key "CFBundleSupportedPlatforms". The value should be "iPhoneSimulator". If you don't see this it means the application is not created for iOS Simulator execution.
If you've checked all the above and still can't create a valid app, please open a support ticket at help@saucelabs.com.