question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cant run on real iOS, app still terminate and restarts

See original GitHub issue

The problem

When trying run test application on iOS device (Android is working), application starts for while, then terminate and start again.

https://www.youtube.com/watch?v=LKipTZBIr_M

Environment

  • Appium version: 1.11.1
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: Mac OS 10.14.3
  • Node.js version (unless using Appium.app|exe): v10.15.1
  • Npm package manager: 6.4.1
  • Real device or emulator/simulator: iPad 9.7 with OS 11.3
  • Appium CLI or Appium.app|exe: Desktop
  • xCode: 10.1

Details

Running simple iOS app from Unity3D on iPad over Appium results into cyclic app restarting on device.

I can see this error in log: Could not proxy command to remote server. Original error: Error: socket hang up). Retrying... which looks like in this post https://github.com/appium/appium/issues/12155

or Error: socket hang up Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

Link to Appium logs

Appium log Testing python script

Code To Reproduce Issue [ Good To Have ]

`#!/usr/bin/python

import unittest from appium import webdriver

desired_caps = {} desired_caps[‘showXcodeLog’] = ‘true’ desired_caps[‘platformName’] = ‘iOS’ desired_caps[‘platformVersion’] = ‘11.3’ desired_caps[‘xcodeOrgId’] = ‘7DC7W55G5S’ desired_caps[‘automationName’] = ‘xcuitest’ desired_caps[‘xcodeSigningId’] = ‘iPhone Developer’ desired_caps[‘bundleId’] = ‘com.bistudio.DebuggerTest’ desired_caps[‘deviceName’] = ‘BIMG_Milan_Malek_iPad9.7’ desired_caps[‘udid’] = ‘auto’

driver = webdriver.Remote(‘http://localhost:4723/wd/hub’, desired_caps) #driver.unlock() #self.driver.unlock()`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16

github_iconTop GitHub Comments

3reactions
MildaGeniuscommented, Mar 8, 2019

Finally I found source of weird behaviour.

Problem is in checked “Connect via network” in xCode device organiser.

xCode Connect via network

After uncheck this options in xCode problem is gone.

0reactions
lock[bot]commented, Mar 17, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If an app on your iPhone or iPad stops responding, closes ...
If an app on your iPhone or iPad stops responding, closes unexpectedly, or won't open ; Close and reopen the app. Force the...
Read more >
Why You Shouldn't Make a Habit of Force-Quitting iOS Apps ...
But here's the thing: Force-quit iOS apps or restart iOS devices only to fix problems!
Read more >
Crashing, freezing, or unexpectedly restarting troubleshooting
Crashing, freezing, and restarting are usually signs of a software or app problem. This means your device isn't broken, but probably needs some...
Read more >
Google app won't display search results - iPhone & iPad
To close the app, swipe up on the app's preview. To restart, tap the app's preview. To check if you get results, try...
Read more >
.net Maui sample project does not up before iOS watchdog ...
HotRestart, you could try to deploy the app to an iOS16 device for testing and check if this watchdog terminates error still exists....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found