報(bào)錯(cuò)信息:
ERROR: Could not connect to lockdownd, error code -17
找不到模擬器或者真機(jī)設(shè)備芥永。這個(gè)問題應(yīng)該是flutter SDK更新后引起的。
解決辦法:修改lockdown
文件夾的讀寫權(quán)限
修改文件夾權(quán)限
- 點(diǎn)擊屏幕空白位置或者
finder(訪達(dá))
> 前往 > 前往文件夾 > 輸入/var/db/
找到lockdown
文件 > 右鍵顯示簡(jiǎn)介 > 點(diǎn)擊底部共享與權(quán)限
> 點(diǎn)擊右下角的鎖輸入密碼解鎖 > 點(diǎn)擊共享與權(quán)限
下面的加號(hào)君仆,將自己賬號(hào)添加到權(quán)限列表中玲销,修改為讀與寫
> 最后鎖定權(quán)限即可舆蝴。
- 接下來依次在終端執(zhí)行下方命令
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
執(zhí)行brew install --HEAD libimobiledevice
命令報(bào)錯(cuò):
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "libimobiledevice"
Failure while executing; `git clone --branch master https://git.libimobiledevice.org/libimobiledevice.git /Users/huanghaipo/Library/Caches/Homebrew/libimobiledevice--git` exited with 128. Here's the output:
Cloning into '/Users/huanghaipo/Library/Caches/Homebrew/libimobiledevice--git'...
fatal: unable to access 'https://git.libimobiledevice.org/libimobiledevice.git/': Failed to connect to git.libimobiledevice.org port 443: Operation timed out
解決辦法:
打開科學(xué)上網(wǎng)軟件诊霹,但是還是報(bào)錯(cuò)。但是第三次去執(zhí)行brew install --HEAD libimobiledevice
命令成功了渡嚣。當(dāng)時(shí)科學(xué)上網(wǎng)軟件在打開著梢睛,很有可能是網(wǎng)速的問題肥印。或者說多執(zhí)行幾次這個(gè)命令
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "libimobiledevice"
Failure while executing; `git clone --branch master https://git.libimobiledevice.org/libimobiledevice.git /Users/huanghaipo/Library/Caches/Homebrew/libimobiledevice--git` exited with 128. Here's the output:
Cloning into '/Users/huanghaipo/Library/Caches/Homebrew/libimobiledevice--git'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
最后執(zhí)行flutter doctor
命令檢測(cè)绝葡,成功找到設(shè)備深碱。