.

Appium iOS : App crashes when launching on simulator through Appium



Issue:
 
My ios app crashes while launching on iphone 5s simulator running ios 7.1. The error message is that instruments crashed on startup.
I can see the app loading on simulator and then it crashes.

I am working on:
- Macbook Pro with OS version 10.9.5.
- Xcode 6.1
- Appium Version 1.3.1 (running the GUI Client)




 Solution

1. First of all compile the app for the simulator and try again.

 2. If it doesn't help then check if you are getting startup alert (like the one that needs permission to access your location).

If this is the case then add this in desired capabilities:

     capabilities.setCapability("autoAcceptAlerts", true);


Recent Posts