The libusbmuxd library has been updated with a bugfix, which should be installed with the following commands: – github.com/libimobiled… However, the library can still be updated at any time in the future, and it is still safest to choose a stable version to build locally

Remember a pit

  • Install Hot Reload dependencies on Flutter
  • Problems encountered: When iOS is connected to a physical mobile phone, the connection to the Xcode Flutter debugger will be automatically disconnected after 5 seconds.
  • The scene of the accident

    It looked calm when it started

    A few seconds later, the car rolled over

  • Direct runflutter runThe same thing would happen in five seconds

why

  • Official use of FlutterlibusbmuxdThis library connects to iOS devices for hot loading
    • The recommended installation method in the official documentation is
      brew install --HEAD usbmuxd
      brew link usbmuxd
      Copy the code

    You know, just pull himlibusbmuxdThe master code for this library… Pretty bold, if you will

    • I didn’t thinklibusbmuxdUpdated… Then there was something wrong with the latest COMMIT code, which caused the problem.

Analysis of the

  • Let’s get a stable versionlibusbmuxdBrew cannot install a specific COMMIT.

The solution

  • findlibusbmuxdThe previous stable version of the library is commit2501f51
  • Download and reinstall this version locallylibusbmuxd
./autogen.sh
make
sudo make install
Copy the code

After the substitution, you can finally get back to writing bugs happily