-
Notifications
You must be signed in to change notification settings - Fork 30.2k
flutter and tools dynlib errors on ios #41468
Description
Something happened to my flutter installation. By default ios installs idevice_id and the other related libimobiledevices libraries for talking to ios devices. For some reason the tools either never get associated or they become disassociated from their libs. So when they are executed they produce exactly that output
$ /Users/rbucker/dev/flutter/bin/cache/artifacts/libimobiledevice/idevice_id
dyld: Library not loaded: /b/s/w/ir/k/homebrew/Cellar/libimobiledevice-flutter/HEAD-398c120_3/lib/libimobiledevice.6.dylib
Referenced from: /Users/rbucker/dev/flutter/bin/cache/artifacts/libimobiledevice/idevice_id
Reason: image not found
Abort trap: 6
[a] Nothing would repair this error... ie flutter upgrade. [b] it did not produce an error just no devices available.
My first repair was to delete the failing utils and rely on the system path to my brew installation. Then after a crappy night's sleep, TMI, I decided that I should just delete flutter and re-install it. That worked even though I did not remove the brew installed tools.
So, while this is meant to document an experience for others... I think there are some potential actionable items like detecting when the tool fails for system reasons separately from normal operation.