Apping giving this msg: The target application appears to have died

Appium log:
INST] 2015-09-25 12:40:08 +0000 Fail: The target application appears to have died
info: [debug] [INST STDERR] 2015-09-25 13:40:08.563 instruments[5199:384675] Attempting to set event horizon when core is not engaged, request ignored
2015-09-25 13:40:08.564 instruments[5199:384675] Attempting to set event horizon when core is not engaged, request ignored
info: [debug] [INST] Instruments Trace Complete (Duration : 15.452854s; Output : /tmp/appium-instruments/instrumentscli0.trace)
info: [debug] [INSTSERVER] Instruments exited with code 0

ios webkit debug proxy log:
Disconnected :27753 from Ipad 2 (e0982fdecee7b985a9a9d0fe37d9a91851f97edf)
ss.remove_server_fd(4)
ss.remove_fd(3)

child process exited with code 0

------ Just after the apple.com site is launched, ios webkit debug proxy logs that it’s disconnected from the ipad., and it connects again, and again just after apple.com is launched, it disconnects again.

Software Versions being used:
Mac OSX 10.10.3 (Is the mac version an issue, earlier it had it working successfully on OSX 10.9.5)
Xcode 6.4
Safari Launcher https://github.com/budhash/SafariLauncher
Appium 1.4.11
ios webkit debug proxy (using .js file in appium tag v1.4.11 clone)
ipad2 (ios 8.4.1)

  • Enable UI automation option is enabled in Developer section in settings on the ipad
  • Web inspector is enabled on the ipad as well as on the mac

Could you be looking at an actual app crash here? That would kill the appium process right quick.

Thanks wreed for responding.
The app being used is Safari Launcher, and that’s not crashing, as i can see the apple.com website getting launched in it, and even when iosdebug proxy gets disconnected from the ipad, the safari browser is still there, it doesn’t get crashed.

What are your settings for DesiredCapabilities?

Hi Amit, Did you get any solution ? I am also facing the same issue.

It did work for us, but with ios 8.4
And also, with a different safari launcher.More details to follow.

I’m seeing this behaviour too, on Appium 1.4.16 with SafariLauncher on iOS9.1. Tests normally proceed fine, but perhaps 5-10% of the time I see:
121 16:14:37 I [debug] [INST] 2015-12-08 15:17:18 +0000 Fail: The target application appears to have died
@AmitSharma, you said more details to follow, any suggestions?

Edit: Looking on the device itself, Safari loads fine, goes to the URL, and doesn’t appear to crash.

I’m seeing this issue as well on Appium 1.4.16 with my company app on iOS8.4.1. When I start clicking on elements, eventually the target application just dies. Only occurs when Automating, cannot make it happen in manual testing, so must be related to Appium bug?

I am also seeing this issue. I am seeing following message on appium console.

info: --> POST /wd/hub/session/a5d35f5a-7dca-4ddc-85e3-b33c5943e5cf/appium/device/remove_app {“bundleId”:“com.icelero.chatbitecorp”}

info: [debug] [INST] 2016-02-19 11:03:06 +0000 Fail: The target application appears to have died

info: [debug] Responding to client with success: {“status”:0,“value”:"",“sessionId”:“a5d35f5a-7dca-4ddc-85e3-b33c5943e5cf”}

info: <-- POST /wd/hub/session/a5d35f5a-7dca-4ddc-85e3-b33c5943e5cf/appium/device/remove_app 200 3942.147 ms - 74 {“status”:0,“value”:"",“sessionId”:“a5d35f5a-7dca-4ddc-85e3-b33c5943e5cf”}

info: [debug] [INST STDERR] 2016-02-19 16:33:09.604 instruments[14495:39980] Attempting to change event horizon while disengage

info: [debug] [INST] Instruments Trace Complete (Duration : 348.093109s; Output : /tmp/appium-instruments/instrumentscli0.trace)

Hi,
I am testing iOS app on real device (iPad mini) and i am getting this same issue after clicking an element application gets crashed/closed. Even if i try launching the app through appium and clicking the element manually then also Application gets closed
Appium logs showing error : Fail: The target application appears to have died
Appium Version: 1.5.3
iSO version : 9.3.2
Tried on different iPad devices including ipad 2 and ipad mini but same issue occurs.
Please help me to resolve the issue ASAP

TIA
Spruha