问题
I worked out an "Hello iOS" app by Xcode and can test it by Appium on iOS Simulator. However, I got the following error message when I tried to test the same app on a real iPhone/iPad device.
A new session could not be created. (Original error: Could not initialize ideviceinstaller; make sure it is installed and works on your system) (WARNING: The server did not provide any stacktrace information)
Here are my environment.
xcode: 7.0.1
mac os: version 10.11
appium version: 1.4.13
I tried this command "brew install --HEAD ideviceinstaller" but got another error message.
configure: error: in `/private/tmp/xz20151012-43217-o3pk5w/xz-5.2.1':
configure: error: cannot run C compiled programs.
Any solution for it? Thanks!
回答1:
The problem is solved by running these commands:
cd /usr/local/Library
brew update
brew install ideviceinstaller
回答2:
Have you enabled Enable UI Automation
in device Developer settings panel?
回答3:
This worked for me using this version 1.4.13
- Run in Terminal app:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
- press enter/return key. Wait for the command to finish. Run: brew install ideviceinstaller
来源:https://stackoverflow.com/questions/33090041/original-error-could-not-initialize-ideviceinstaller