我想在真实设备上运行appium测试,但在这一步失败了:
.
.
.
info: [debug] App is not installed. Will try to install the app.
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture_page_response_time/Build/Products/Debug-iphoneos/Myapp.app
dyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib
Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib
Reason: image not found
info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture_page_response_time/Build/Products/Debug-iphoneos/Myapp.app
dyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib
Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib
Reason: image not found
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
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 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture_page_response_time/Build/Products/Debug-iphoneos/Myapp.app\ndyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib\n Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib\n Reason: image not found\n)","killed":false,"code":null,"signal":"SIGTRAP","cmd":"/bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture_page_response_time/Build/Products/Debug-iphoneos/Myapp.app","origValue":"Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/myapp/test/Build/Products/Debug-iphoneos/Myapp.app\ndyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib\n Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib\n Reason: image not found\n"},"sessionId":null}
我缺少什么?我手动安装了ideviceinstaller。 我正在使用Xcode:7.2,Appium:1.3.13,iPhone:5s,6,iOS 9.0
我看到了类似的帖子,但找不到可以帮助我的解决方案。 一个是:Appium iOS real device - issue with ideviceinstaller
答案 0 :(得分:0)
运行./reset.sh --ios --real-safari
reset.sh文件应该在appium目录中。
希望这有帮助, 利安