Appium WebDriverAgent 关于 Real device security settings 的问题

luobs · 2016年12月11日 · 527 次阅读

最近一直纠结的几个问题,appium 运行报 #code: 65 和 #code: 49 的错,有一些不明白的地方。

在对 appium-WebDriverAgent 安装对 security 设置了根据 github 上操作,在自己代码中也做了相应的更改,然后运行报错。

chains/appleid.p12' exited with code 49
    at ChildProcess.<anonymous> (../../lib/teen_process.js:66:19)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:885:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
  stdout: '',
  stderr: 'unlock-keychain "-p" "aliao12" "/Users/mac/Library/Keychains/appleid.p12"\nsecurity: SecKeychainUnlock /Users/mac/Library/Keychains/appleid.p12: The specified keychain is not a valid keychain file.\n',
  code: 49 }
[XCUITest] Shutting down sub-processes
[debug] [XCUITest] Reset not set, continuing
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Command 'security -v unlock-keychain -p aliao12 /Users/mac/Library/Keychains/appleid.p12' exited with code 49
    at ChildProcess.<anonymous> (../../lib/teen_process.js:66:19)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:885:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
[HTTP] <-- POST /wd/hub/session 500 1006 ms - 246 

这里报 p12 证书无效,我的.p12 证书是从我的钥匙串里找到我的开发者证书并导出来的,有没有人遇到过类似的情况和有什么解决办法么,已经被困扰好久了。

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