Appium [已解决]iOS8.1 真机测试问题

lifreshman · 2014年12月12日 · 最后由 bingle 回复于 2015年01月05日 · 1124 次阅读

最近用 appium 1.3.4 在 ios8.1 真机上测试发现总是运行不起来脚本,app 启动后就退出,仔细看 appium 的日志发现有这么一段 log:

/Applications/Xcode6.1.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode6.1.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w fa5d0d6515785349a13673c0e147514b8800d86c umeng.UMSocial -e UIASCRIPT "/Users/lixinsheng/Library/Application Support/appium/bootstrap/bootstrap-5ab9d3956726ac35.js" -e UIARESULTSPATH /tmp/appium-instruments

是在运行这段代码时候抛出了 UIAScriptAgentSignaledException 这个异常,经过一番 google 之后发现,原来在 ios8.1 的设置/开发者里,多了个 Enable UI Automation 开关,打开后就解决了。。。困扰了两天,OMG!

共收到 1 条回复 时间 点赞

顶,我也是这个问题

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