POSTS
Flutter Losing Connection to iOS Devices
I ran into an issue with flutter losing the connection to my iOS device this morning after doing a fresh install of MacOS Mojave over the weekend. It was really annoying and was creating a huge lag time in development. It turns out there’s a bug in libusbmuxd, a client library to multiplex connections to/from iOS devices. Instead of waiting for a patch, I was able to revert to an older commit. There’s probably an easier way to do this, but it may come in handy when needing to manually revert to an older version of software that’s managed and installed by macOS Homebrew:
git clone https://github.com/libimobiledevice/libusbmuxd.git
cd libusbmuxd/
git checkout 9efb1745bf0eb68064a670b297d4ec7fc98caa02
./autogen.sh
mkdir compiled
./configure --prefix=$PWD/compiled/
make
make install
mv /usr/local/Cellar/usbmuxd/HEAD-affc9af_1/bin{,.bak}
mv /usr/local/Cellar/usbmuxd/HEAD-affc9af_1/include{,.bak}
mv /usr/local/Cellar/usbmuxd/HEAD-affc9af_1/lib{,.bak}
cp -a compiled/* /usr/local/Cellar/usbmuxd/HEAD-affc9af_1/