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.

appium can't run on real-device

See original GitHub issue

The problem

I build the app by xcode,and install on my real device,i can use instruments to test my app,but i can not test cases using appium

Environment

1、 Appium version :1.5.3 2、OS X: 10.11.6 3、Node.js version :v4.4.3 4、ios :9.2.1 5、xcode verson:8.0

Link to Appium logs

[debug] [iOS] Creating iDevice object with udid b665282d15e28693a72929c08916d29d451cf81f [debug] [iOS] App is not installed. Will try to install the app. [MJSONWP] Encountered internal error running command: Error: Installing com.juangua.mogujiedev.guyan failed at /Users/gy/WorkSpaces/nvm/versions/node/v4.4.3/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/node-idevice/main.js:159:6 at ChildProcess.exithandler (child_process.js:204:7) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:827:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) [HTTP] <-- POST /wd/hub/session 500 1197 ms - 183

Code To Reproduce Issue [ Good To Have ]

    capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "9.2.1");
    capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone");
    capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME,"iOS");
    capabilities.setCapability(MobileCapabilityType.APP,"com.xxx.xxx.xxx");
    capabilities.setCapability(MobileCapabilityType.UDID,"xxxxx"); 

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
imurchiecommented, Oct 17, 2016

Appium 1.5.3 will not work with Xcode 8. Xcode 8 will also not be able to automate iOS 9.2. If you want to do so you will need to get Xcode 7.3 and use that.

For installing, there is an issue with ideviceinstaller. To fix, re-install libimobiledevice with the latest (brew upgrade libimobiledevice --HEAD).

0reactions
lock[bot]commented, Apr 28, 2019

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

Troubleshooting - Appium
Make sure the app is compiled for the simulator (or real device ) as appropriate (e.g., in debug mode for the simulator), or...
Read more >
Can not run app on real iOS devices - Issues/Bugs
i tried with this https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. and when run this to be sure
Read more >
Unable to run test on real device but running on simulator
Unable to see WebDriverAgentRunner app on the device, however I have build that app multiple times. My Scrip is able to interact with...
Read more >
iOS device not connecting to appium - Support
I am trying to make real iOS device work with appium. Xcode build is successful when building from Xcode. After adding capabilities to ......
Read more >
Appium Android Testcase not Running in Real Android devices
I can run appium test case on android emulator successfully, but can not run it on android real devices. I get this error:...
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