Error message:
ERROR: Could not connect to lockdownd, error code -17
Copy the code
Could not find emulator or real device. This problem should be caused by the update of the Flutter SDK.
Solution: Modifylockdown
Read and write permissions for folders
-
Click on the blank screen or Finder > Go > Go folder > enter /var/db/ to find the lockdown file > right-click to display the Profiles > Click on the bottom of the Share & Permissions > click on the lock in the lower right corner to enter the password to unlock > click the plus sign under the Share & Permissions. Add your own account to the permission list, change it to Read and Write > Lock last.
-
Then execute the following commands on the terminal one by one
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
Copy the code
performbrew install --HEAD libimobiledevice
Command error:
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
Copy the code
Solutions:
Open the science Internet software, but still report an error. But a third attempt to execute brew install –HEAD libiMobiledevice succeeded. The science Internet software was open at the time, and it was probably the Internet speed. Or execute the command several times
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
Copy the code
Finally, the device was found successfully by executing the flutter doctor command.