求各位帮忙看看,ibimobiledevice 和 ideviceinstaller 都已经安装。
APPIUM 版本是:1.4.13(通过官方的 dmg 包安装的)
IOS 模拟器是:5s+ ios 8.3
IOS Settings 截图:
info: [debug] App is not installed. Will try to install the app.
info: [debug] Installing ipa found at /Users/hucan/Desktop/psa App/小金袋.ipa
info: [debug] Cleaning up appium session
info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u 8FE6A543-C655-4A3F-86D7-00E0BB0DFC07 -l
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: /bin/sh -c ideviceinstaller -u 8FE6A543-C655-4A3F-86D7-00E0BB0DFC07 -l \n)","killed":false,"code":2,"signal":null,"cmd":"/bin/sh -c ideviceinstaller -u 8FE6A543-C655-4A3F-86D7-00E0BB0DFC07 -l ","origValue":"Command failed: /bin/sh -c ideviceinstaller -u 8FE6A543-C655-4A3F-86D7-00E0BB0DFC07 -l \n"},"sessionId":null}
error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 8FE6A543-C655-4A3F-86D7-00E0BB0DFC07 -l
解决方案:
更新你的 brew 到最新版本:
1、在终端输入一下命令:brew update&&brew upgrade&&brew clean
慢慢等吧可能会比较慢
2、卸载已经存在的 libimobiledevice 和 ideviceinstaller,执行命令为:brew unistall libimobiledevice 和 brew unintall ideviceinstaller
3、重新安装 libimobiledevice 和 ideviceinstaller 命令为:brew install --HEAD libimobiledevice 和
brew install --HEAD ideviceinstaller