[debug] [iOS] App is not installed. Will try to install.

[MJSONWP] Encountered internal error running command: Error: Installing
/var/folders/hb/5xtrkgp16bj3rctx9kxg64t00000gn/T/2016913-9705-
1ugvtlc/Payload/Input.app failed
at
/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-
ios-driver/node_modules/node-idevice/main.js:159:6
at ChildProcess.exithandler (child_process.js:193:7)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)

 

上面是错误代码.

 

解决办法:

在终端执行命令:sudo chmod -R 777 /var/db/lockdown/

如果还有报错 请重启mac电脑和手机

 

posted on 2016-10-13 18:38  小白闯天下  阅读(6091)  评论(0编辑  收藏  举报