Skip to content

flutter and tools dynlib errors on ios #41468

@rbucker

Description

@rbucker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: buildBuilding flutter applications with the toolplatform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions