Appium iOS真实设备-ideviceinstaller出现问题

Appium iOS真实设备-ideviceinstaller出现问题,appium,Appium,我正在iOS real设备上运行appium测试脚本,在那里我得到了ideviceinstaller错误。 我已经使用“brew安装--HEAD ideviceinstaller”手动安装了ideviceinstaller,但仍然收到相同的错误 error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 0e0615c84ad9c68c7b0f42

我正在iOS real设备上运行appium测试脚本,在那里我得到了ideviceinstaller错误。 我已经使用“brew安装--HEAD ideviceinstaller”手动安装了ideviceinstaller,但仍然收到相同的错误

error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9 -l dyld: Library not loaded: /usr/local/lib/libplist.3.dylib Referenced from: /usr/local/bin/ideviceinstaller Reason: image not found

Please check the below logs.Using xcode 6.1.1 and iOS 8.1.

info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"8.1.1","app":"/Users/rajesh.madaswamy/FlydotREZ.ipa","deviceName":"iPhone","platformName":"iOS","fullReset":true,"browserName":"","bundleId":"com.accenture.ams.dev.london.Voyage-Air","udid":"0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9"}}
info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)
info: [debug] Using local .ipa from desired caps: /Users/rajesh.madaswamy/FlydotREZ.ipa
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/rajesh.madaswamy/FlydotREZ.ipa copied to /var/folders/bc/7qkw5sfd221dbcm_fg2fp0g9dhyybh/T/115224-74086-ga247s/appium-app.zip
info: [debug] Unzipping /var/folders/bc/7qkw5sfd221dbcm_fg2fp0g9dhyybh/T/115224-74086-ga247s/appium-app.zip
info: [debug] Testing zip archive: /var/folders/bc/7qkw5sfd221dbcm_fg2fp0g9dhyybh/T/115224-74086-ga247s/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/bc/7qkw5sfd221dbcm_fg2fp0g9dhyybh/T/115224-74086-ga247s/Payload/Fly dotREZ.app
info: [debug] Creating new appium session 153304f6-3daf-4ee3-b72c-3f181d3a8ffa
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version
info: [debug] Setting iOS SDK Version
info: [debug] Getting sdk version from xcrun with a timeout
info: [debug] iOS SDK Version set to 8.1
info: [debug] Not checking whether simulator is available since we're on a real device
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Parsed app Localizable.strings
info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/usr/local/Cellar/node/0.12.0_1/bin/node","commandProxyClientPath":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. D...ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-4f4c08d246c5f17c.js
info: [debug] Reusing dynamic bootstrap: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-4f4c08d246c5f17c.js
info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.1.1","iOSSDKVersion":"8.1","deviceName":"iPhone","platformVersion":"8.1.1"}
info: [debug] fixDevice is on
info: [debug] Final device string is: 'iPhone (8.1.1 Simulator)'
info: [debug] Not setting device type since we're on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we're on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons
info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we're using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole
info: [debug] Not pre-launching simulator
info: [debug] Creating iDevice object with udid 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9
info: [debug] Checking app install status using: /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9 --bundle com.accenture.ams.dev.london.Voyage-Air
info: [debug] App is installed.
info: [debug] fullReset requested. Forcing app install.
info: [debug] Installing ipa found at /Users/rajesh.madaswamy/FlydotREZ.ipa
info: [debug] Creating iDevice object with udid 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9 -l 
dyld: Library not loaded: /usr/local/lib/libplist.3.dylib
  Referenced from: /usr/local/bin/ideviceinstaller
  Reason: image not found

info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9 -l 
dyld: Library not loaded: /usr/local/lib/libplist.3.dylib
  Referenced from: /usr/local/bin/ideviceinstaller
  Reason: image not found

    at ChildProcess.exithandler (child_process.js:744:12)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1008:16)
    at Socket.<anonymous> (child_process.js:1176:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:476: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 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9 -l \ndyld: Library not loaded: /usr/local/lib/libplist.3.dylib\n  Referenced from: /usr/local/bin/ideviceinstaller\n  Reason: image not found\n)","killed":false,"code":null,"signal":"SIGTRAP","cmd":"/bin/sh -c ideviceinstaller -u 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9 -l ","origValue":"Command failed: /bin/sh -c ideviceinstaller -u 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9 -l \ndyld: Library not loaded: /usr/local/lib/libplist.3.dylib\n  Referenced from: /usr/local/bin/ideviceinstaller\n  Reason: image not found\n"},"sessionId":null}
info: <-- POST /wd/hub/session 500 2042.905 ms - 714
错误:启动应用程序会话失败,错误为:错误:命令失败:/bin/sh-c ideviceinstaller-u 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9-l dyld:库未加载:/usr/local/lib/libplist.3.dylib引用自:/usr/local/bin/ideviceinstaller原因:未找到图像
请检查以下日志。使用xcode 6.1.1和iOS 8.1。
信息:Appium REST http接口侦听器于0.0.0.0:4723启动
信息:控制台日志级别:调试
信息:-->POST/wd/hub/session{“desiredCapabilities”:{“platformVersion”:“8.1.1”,“app”:“/Users/rajesh.madaswamy/FlydotREZ.ipa”,“deviceName”:“iPhone”,“platformName”:“iOS”,“fullReset”:true,“browserName”:“bundleId”:“com.accenture.ams.dev.london.Voyage Air”,“udid”:“0E0615C84AD9C68C7B0F42651C3F38FD4B9”}
信息:客户端用户代理字符串:Apache HttpClient/4.3.6(java 1.5)
信息:[调试]使用所需caps中的local.ipa:/Users/rajesh.madaswamy/FlydotREZ.ipa
信息:[调试]正在将本地zip复制到tmp目录
信息:[调试]/Users/rajesh.madaswamy/FlydotREZ.ipa复制到/var/folders/bc/7qkw5sfd21dbcm_fg2fp0g9dhyybh/T/115224-74086-ga247s/appium-app.zip
信息:[调试]解压/var/folders/bc/7qkw5sfd21dbcm_fg2fp0g9dhyybh/T/115224-74086-ga247s/appium-app.zip
信息:[调试]测试zip存档:/var/folders/bc/7qkw5sfd21dbcm_fg2fp0g9dhyybh/T/115224-74086-ga247s/appium-app.zip
信息:[调试]Zip存档已测试干净
信息:[调试]解压缩成功
信息:[调试]使用本地提取的应用程序:/var/folders/bc/7qkw5sfd221dbcm_fg2fp0g9dhyybh/T/115224-74086-ga247s/Payload/Fly dotREZ.app
信息:[调试]创建新的应用程序会话153304f6-3daf-4ee3-b72c-3f181d3a8ffa
信息:[调试]删除所有剩余的仪器插座
信息:[调试]已清理仪器插座/tmp/instruments\u插座
信息:[调试]正在设置Xcode文件夹
信息:[调试]正在设置Xcode版本
信息:[调试]正在设置iOS SDK版本
信息:[调试]正在超时从xcrun获取sdk版本
信息:[调试]iOS SDK版本设置为8.1
信息:[调试]未检查模拟器是否可用,因为我们使用的是真实设备
信息:[调试]检测自动跟踪模板
信息:[调试]未自动检测udid,在sim卡上运行
信息:[调试]已解析的app info.plist(二进制)
信息:[调试]已解析的应用程序本地化.strings
信息:[调试]正在创建仪器
信息:在某些xcode 6平台上,仪器不能立即工作。如果遇到这种情况,则需要使用--native instruments lib标志重新运行appium
信息:[调试]正在准备uiauto引导
信息:[调试]动态引导目录:/Users/rajesh.madaswamay/Library/Application Support/appium/bootstrap
信息:[调试]动态环境:{“nodePath”:“/usr/local/cillar/node/0.12.0_1/bin/node”,“commandProxyClientPath”:“/Users/rajesh.madasway/.npm packages/lib/node_modules/appium/node_modules/appium uiauto/bin/command proxy client.js”,“instrumentsSock”:“/tmp/instruments_sock”,“interKeyDelay”:null,“justLoopInfinitely”:false,“autoaccepts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
信息:[调试]动态引导代码://此文件是自动生成的。D…ot手动修改!
信息:[调试]动态引导路径:/Users/rajesh.madasway/Library/Application Support/appium/bootstrap/bootstrap-4f4c08d246c5f17c.js
信息:[调试]重用动态引导:/Users/rajesh.madasway/Library/Application Support/appium/bootstrap/bootstrap-4f4c08d246c5f17c.js
信息:[调试]从选项获取设备字符串:{“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone”,“platformVersion”:“8.1.1”}
信息:[调试]修复设备已打开
信息:[调试]最后一个设备字符串是:“iPhone(8.1.1模拟器)”
信息:[调试]未设置设备类型,因为我们使用的是真实设备
信息:[调试]正在检查是否需要设置应用程序首选项
信息:[调试]未设置iOS和应用程序首选项,因为我们使用的是真实设备
信息:[调试]正在运行ios sim重置流
信息:[调试]正在终止模拟器进程
信息:[调试]Killall iOS模拟器
信息:[调试]正在杀死任何其他模拟器守护进程
信息:[调试]在真实设备上;无法清除设备状态
信息:[调试]未设置区域设置,因为我们使用的是真实设备
信息:[调试]没有要设置的iOS/应用程序首选项
信息:[调试]通过deviceconsole启动iOS设备日志捕获
信息:[调试]未预启动模拟器
信息:[调试]使用udid 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9创建iDevice对象
信息:[调试]正在使用:/Users/rajesh.madaswamy/.npm packages/lib/node_modules/appium/build/fruitstrap/fruitstrap检查应用程序安装状态已安装--id 0E0615C84AD9C68C7B0F42651541C3F38FD4B9--bundle com.accenture.ams.dev.london.Voyage-Air
信息:[调试]应用程序已安装。
信息:[调试]已请求完全重置。正在强制安装应用程序。
信息:[调试]安装ipa位于/Users/rajesh.madasway/FlydotREZ.ipa
信息:[调试]使用udid 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9创建iDevice对象
信息:[调试]正在清理应用程序会话
错误:无法启动应用程序会话,错误为:错误:命令失败:/bin/sh-c ideviceinstaller-u 0E0615C84AD9C68C7B0F422651541C3F38FD4B9-l
dyld:未加载库:/usr/local/lib/libplist.3.dylib
引用自:/usr/local/bin/ideviceinstaller
原因:找不到图像
信息:[调试]错误:命令失败:/bin/sh-c ideviceinstaller-u 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9-l
dyld:未加载库:/usr/local/lib/libplist.3.dylib
引用自:/usr/local/bin/ideviceinstaller
原因:找不到图像
在ChildProcess.exithandler(child_process.js:744:12)
在ChildProcess.emit(events.js:110:17)
在maybeClose(child_process.js:1008:16)
插座处。(child_process.js:1176:11)
在Socket.emit(events.js:107:17)
at Pipe.close(net.js:476:12)
信息:[调试]Re
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
brew install ideviceinstaller