Appium [已解决] MAC OSX 上启动 Inspector 提示: Error: Command failed: /bin/sh -c ideviceinstaller -u 8FE6A543-C655-4A3F-86D7-00E0BB0DFC07 -l

Mr Wang · 2016年04月22日 · 最后由 Mr Wang 回复于 2016年04月22日 · 1599 次阅读

求各位帮忙看看,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

共收到 5 条回复 时间 点赞

先搜下论坛,不要老重复发类似的问题

#1 楼 @monkey 问题已经解决 title 已经修正为【已解决】请开放此贴 其他人遇到同意问题可以有个参照 多谢

@lihuazhang@seveniruby@monkey 问题已经解决 title 已经修正为【已解决】并在帖子内容中做了详细说明。 请开放此贴 其他人遇到同意问题可以有个参照 多谢

#3 楼 @young 这个解决方法。。。 好吧 如果这也算坑。

#4 楼 @lihuazhang 确实这样解决的 初次 使用 mac osx 上的 appium 很多在摸索

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册