美文网首页
一路遇到的坑和报错(持续更新)

一路遇到的坑和报错(持续更新)

作者: IT_barry | 来源:发表于2020-03-13 00:01 被阅读0次

一、adb

1、adb shell 提示error:device off line 或者error:devices not found

解决办法:

adb kill-server

adb start-server

adb remount

再打adb devices和adb shell就不会再有报错了。

二、homebrew(Mac上安装homebrew报错遇到的坑)

1、安装HomeBrew 时出现警告:Warning: /usr/local/bin is not in your PATH以及输入终端输入brew命令报错-bash: brew: command not found

解决办法:

从网上找到的办法,自己亲测有效:

输入sudo vim .bash_profile

添加export PATH=/usr/local/bin:$PATH

保存export PATH=/usr/local/bin:$PATH

2、Please delete these paths and run `brew update`

解决办法:按照上面删除相应的path即可

三、appium-doctor报的错:

1、Error running xcrun simctl 

解决办法:

解决方案: xcode - perferences - locations -command line tools 设置一下就可以了

四、ideviceinstaller 报错 Could not connect to lockdownd. Exiting.

解决办法:

1.brew uninstall -f libimobiledevice ideviceinstaller usbmuxd

如果命令被拒绝,可根据提示,更新命令:

brew uninstall --ignore-dependencies libimobiledevice ideviceinstaller usbmuxd

2.brew install -v --HEAD --fetch --build-from-source usbmuxd libimobiledevice ideviceinstaller

3.ideivesinstaller -i xxx.ipa

相关文章

网友评论

      本文标题:一路遇到的坑和报错(持续更新)

      本文链接:https://www.haomeiwen.com/subject/mvjnjhtx.html