appium can't run on real-device
See original GitHub issueThe 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:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
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-installlibimobiledevice
with the latest (brew upgrade libimobiledevice --HEAD
).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.