【问题标题】:Launching ios app on real device with appium gives error with ideviceinstaller使用 appium 在真实设备上启动 ios 应用程序会导致 ideviceinstaller 出错
【发布时间】:2016-01-22 01:57:20
【问题描述】:

我正在尝试在真实设备上运行 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

【问题讨论】:

  • 你跑过./reset.sh --ios --real-safari吗?
  • 不,我没有。我在哪个目录下做这个? (我必须在 iOS 应用上运行测试)
  • 发布了带有解释的答案。如果您需要更多详细信息,我们很乐意提供帮助。

标签: device appium


【解决方案1】:

运行./reset.sh --ios --real-safari

reset.sh 文件应该在 appium 目录中。

希望这会有所帮助, 利亚姆

【讨论】:

  • 这是它得到的: * 确定平台 * 平台是 mac ---- 重置/初始化 Appium ---- 重置 NPM * 安装新的或更新的 NPM 模块(包括 devDeps) 重置一般 * 没有要做,不是 git repo RESETTING IOS ----------------------------------------- ---------- 警告:您似乎没有激活 iOS7/8 SDK ---------------------------- ------------------------ * 将 iOS 配置设置为 Appium 的版本 * 为真实设备构建 SafariLauncher ---- FAILURE: reset.sh exited with status 1 ---- ---- 使用 --verbose 重试以查看错误 ----
  • Warning: you do not appear have iOS7/8 SDK active。您是否安装并更新了 xCode?​​span>
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-01-26
  • 2019-04-05
  • 2020-02-06
  • 2019-04-19
  • 2013-11-04
  • 2016-02-04
  • 2016-01-21
相关资源
最近更新 更多