New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libimobiledevice install instructions are incorrect #22595

Closed
cbracken opened this Issue Oct 3, 2018 · 15 comments

Comments

Projects
None yet
7 participants
@cbracken
Member

cbracken commented Oct 3, 2018

Originally reported on StackOverflow.

A recent change to libimobiledevice bumped the constraint on libusbmuxd to >= version 1.1.0. The current usbmuxd homebrew package is version 1.0.10.

As a result, homebrew --HEAD installs of libimobiledevice no longer build without a --HEAD install of usbmuxd.

Until the usbmuxd homebrew formula is updated, a workaround is to install it at HEAD:

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

Ideally, we should send a PR to get the usbmuxd homebrew formula updated to 1.1.0. If we can't do that, we should update the instructions we emit from flutter doctor.

@cbracken

This comment has been minimized.

Member

cbracken commented Oct 3, 2018

@cseder

This comment has been minimized.

cseder commented Nov 3, 2018

Any progress regarding this issue?
It's unfortunate for the project if new users encounters these errors when following instructions from the flutter.io site. Maybe at least update the install instructions on the flutter.io website to point to this workaround until this gets resolved?

tvolkert added a commit to tvolkert/website that referenced this issue Nov 5, 2018

Update libimobiledevice installation instructions
HEAD libimobiledevice depends on HEAD usbmuxd.

flutter/flutter#22595

tvolkert added a commit to tvolkert/flutter that referenced this issue Nov 5, 2018

tvolkert added a commit that referenced this issue Nov 5, 2018

sfshaza2 added a commit to flutter/website that referenced this issue Nov 6, 2018

Update libimobiledevice installation instructions (#1701)
* Update libimobiledevice installation instructions

HEAD libimobiledevice depends on HEAD usbmuxd.

flutter/flutter#22595

* Review comments
@Hixie

This comment has been minimized.

Contributor

Hixie commented Nov 21, 2018

Is this fixed? I see some PRs landed.

@cbracken

This comment has been minimized.

Member

cbracken commented Nov 21, 2018

Instructions are updated in flutter doctor. Based on the fact that the stackoverflow karma from my original answer has stopped, I think it's safe to close this.

If someone wants to send a PR to the libusbmuxd brew recipe, that can be done as a separate followup.

@cbracken cbracken closed this Nov 21, 2018

@sjmcdowall

This comment has been minimized.

Contributor

sjmcdowall commented Nov 26, 2018

This is (maybe) a related question -- but -- why am I still seeing an error/warning in the iOS part of flutter doctor when I did the instructions -- and I don't even have any devices connected (iOS ones) at the time? This started ever since I upgraded to Flutter 0.11.9 .. I am not sure I understand the logic it is using for the error.

flutter doctor -v                                                                                                         ✔  10085  13:37:41
[✓] Flutter (Channel beta, v0.11.9, on Mac OS X 10.14.1 18B75, locale en)
    • Flutter version 0.11.9 at /Users/sjm/Development/flutter
    • Framework revision d48e6e433c (6 days ago), 2018-11-20 22:05:23 -0500
    • Engine revision 5c8147450d
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/sjm/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    ✗ Verify that all connected devices have been paired with this computer in Xcode.
      If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
      To update with Brew, run:
        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
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.3)
    • IntelliJ at /Users/sjm/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 29.1.1
    • Dart plugin version 181.4892.1

[✓] VS Code (version 1.29.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.20.0

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

! Doctor found issues in 1 category.
  …/mms4/mobile     8537fcc1  master   1  flutter devices                                                                                                           ✔  10086  13:37:54
1 connected device:

Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
@tvolkert

This comment has been minimized.

Contributor

tvolkert commented Nov 26, 2018

The message could certainly be improved in the case of no connected devices. It's basically saying that it's detected that your libimobiledevice and usbmuxd are out of date and could cause issues if you were to attach devices.

@sjmcdowall

This comment has been minimized.

Contributor

sjmcdowall commented Nov 26, 2018

@tvolkert -- except I am still seeing the exact same message after I followed the steps outlined in the flutter doctor -v .. so .. something is a bit amiss I think?

@tvolkert

This comment has been minimized.

Contributor

tvolkert commented Nov 26, 2018

@sjmcdowall ah, sorry I missed that part of your comment before. Can you please file a separate issue with the output of flutter --verbose doctor -v (note the extra --verbose)? Thanks!

@sjmcdowall

This comment has been minimized.

Contributor

sjmcdowall commented Nov 26, 2018

Ha! Go figure -- now flutter doctor -v is a happy camper once I DID plug in an iOS physical device .. no other changes.. I guess if there is no physical device plugged in so it doesn't know if it will work -- it puts out the error? That seems ... wrong and "scary"

@neiljaywarner

This comment has been minimized.

neiljaywarner commented Nov 29, 2018

@eseidelGoogle Any thoughts here please?

@tvolkert

This comment has been minimized.

Contributor

tvolkert commented Nov 29, 2018

The real fix here is to have usbmuxd update their homebrew formula to list 1.1.0 as stable. Until they do, we need to tell users to install usbmuxd at HEAD.

@tvolkert

This comment has been minimized.

Contributor

tvolkert commented Nov 29, 2018

@ciscolxh

This comment has been minimized.

ciscolxh commented Dec 8, 2018

[  +58 ms] executing: [/Users/howard/Public/flutter/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +110 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[  +15 ms] origin/beta
[   +1 ms] executing: [/Users/howard/Public/flutter/flutter/] git rev-parse --abbrev-ref HEAD
[  +14 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +5 ms] beta
[  +18 ms] executing: [/Users/howard/Public/flutter/flutter/] git ls-remote --get-url origin
[  +18 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] executing: [/Users/howard/Public/flutter/flutter/] git log -n 1 --pretty=format:%H
[  +36 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] 5391447fae6209bb21a89e6a5a6583cac1af9b4b
[        ] executing: [/Users/howard/Public/flutter/flutter/] git log -n 1 --pretty=format:%ar
[  +16 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 8 days ago
[   +1 ms] executing: [/Users/howard/Public/flutter/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +79 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.0.0-0-g5391447fae
[ +539 ms] executing: /usr/bin/defaults read /Applications/Android Studio 2.app/Contents/Info CFBundleShortVersionString
[ +261 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio 2.app/Contents/Info CFBundleShortVersionString
[        ] 3.1
[ +944 ms] executing: /usr/bin/defaults read /Applications/Android Studio 2.app/Contents/Info CFBundleShortVersionString
[  +95 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio 2.app/Contents/Info CFBundleShortVersionString
[        ] 3.1
[ +121 ms] java -version
[ +685 ms] executing: idevice_id -h
[  +10 ms] executing: idevice_id -h
[  +10 ms] executing: ideviceinfo -u 00008020-001C2D903C42002E
[  +16 ms] executing: pod --version
[ +188 ms] executing: /usr/bin/defaults read /Applications/IntelliJ IDEA.app/Contents/Info CFBundleShortVersionString
[  +94 ms] Exit code 0 from: /usr/bin/defaults read /Applications/IntelliJ IDEA.app/Contents/Info CFBundleShortVersionString
[        ] 2017.3.1
[  +51 ms] [✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
[   +1 ms]     • Flutter version 1.0.0 at /Users/howard/Public/flutter/flutter
[        ]     • Framework revision 5391447fae (8 days ago), 2018-11-29 19:41:26 -0800
[        ]     • Engine revision 7375a0f414
[        ]     • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
⣾[   +3 ms] executing: /Users/howard/Public/androidsdk/android-sdk-macosx/platform-tools/adb devices -l
[  +26 ms] Exit code 0 from: /Users/howard/Public/androidsdk/android-sdk-macosx/platform-tools/adb devices -l
[        ] List of devices attached
           621MECQH3FLM2          device usb:336592896X product:meizu_M5 Note model:M5_Note device:M5Note transport_id:1
[  +12 ms] executing: idevice_id -h
⣽[ +207 ms] Usage: ideviceinfo [OPTIONS]
                    Show information about a connected device.

                      -d, --debug		enable communication debugging
                      -s, --simple		use a simple connection to avoid auto-pairing with the device
                      -u, --udid UDID	target specific device by its 40-digit device UDID
                      -q, --domain NAME	set domain of query to NAME. Default: None
                      -k, --key NAME	only query key specified by NAME. Default: All keys.
                      -x, --xml		output information as xml plist instead of key/value pairs
                      -h, --help		prints usage information

                      Known domains are:

                      com.apple.disk_usage
                      com.apple.disk_usage.factory
                      com.apple.mobile.battery
                      com.apple.iqagent
                      com.apple.purplebuddy
                      com.apple.PurpleBuddy
                      com.apple.mobile.chaperone
                      com.apple.mobile.third_party_termination
                      com.apple.mobile.lockdownd
                      com.apple.mobile.lockdown_cache
                      com.apple.xcode.developerdomain
                      com.apple.international
                      com.apple.mobile.data_sync
                      com.apple.mobile.tethered_sync
                      com.apple.mobile.mobile_application_usage
                      com.apple.mobile.backup
                      com.apple.mobile.nikita
                      com.apple.mobile.restriction
                      com.apple.mobile.user_preferences
                      com.apple.mobile.sync_data_class
                      com.apple.mobile.software_behavior
                      com.apple.mobile.iTunes.SQLMusicLibraryPostProcessCommands
                      com.apple.mobile.iTunes.accessories
                      com.apple.mobile.internal
                      com.apple.mobile.wireless_lockdown
                      com.apple.fairplay
                      com.apple.iTunes
                      com.apple.mobile.iTunes.store
                      com.apple.mobile.iTunes

                    Homepage: <http://libimobiledevice.org>
[  +11 ms] executing: ios-deploy --version
⣻[ +112 ms] executing: /Users/howard/Public/androidsdk/android-sdk-macosx/tools/bin/sdkmanager --licenses
[   +3 ms] executing: ios-deploy --version
⢿[  +46 ms] 1.9.4
[   +5 ms] executing: ios-deploy --version
[  +44 ms] executing: ios-deploy --version
⡿[  +35 ms] 1.9.4
⣷[ +358 ms] executing: which ideviceinstaller
[  +18 ms] Exit code 0 from: which ideviceinstaller
[        ] /usr/local/bin/ideviceinstaller
[        ] executing: which iproxy
[  +14 ms] Exit code 0 from: which iproxy
[        ] /usr/local/bin/iproxy
[   +6 ms] /usr/bin/xcrun simctl list --json devices
[ +639 ms] /Users/howard/Public/androidsdk/android-sdk-macosx/platform-tools/adb -s 621MECQH3FLM2 shell getprop
⣽[ +126 ms] ro.hardware = mt6755
[        ] ro.build.characteristics = default
⣟[ +384 ms] 1.5.3
[+3139 ms] [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[        ]     • Android SDK at /Users/howard/Public/androidsdk/android-sdk-macosx
[        ]     • Android NDK at /Users/howard/Public/androidsdk/android-sdk-macosx/ndk-bundle
[        ]     • Platform android-28, build-tools 28.0.3
[        ]     • ANDROID_HOME = /Users/howard/Public/androidsdk/android-sdk-macosx
[        ]     • Java binary at: /Applications/Android Studio 2.app/Contents/jre/jdk/Contents/Home/bin/java
[        ]     • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[        ]     • All Android licenses accepted.
[   +1 ms] [!] iOS toolchain - develop for iOS devices (Xcode 10.1)
[        ]     • Xcode at /Applications/Xcode.app/Contents/Developer
[        ]     • Xcode 10.1, Build version 10B61
[        ]     ✗ Verify that all connected devices have been paired with this computer in Xcode.
[        ]       If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
[        ]       To update with Brew, run:
[        ]         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
[  +23 ms]     • ios-deploy 1.9.4
[        ]     • CocoaPods version 1.5.3
[        ] [✓] Android Studio (version 3.1)
[        ]     • Android Studio at /Applications/Android Studio 2.app/Contents
[        ]     • Flutter plugin version 25.0.1
[        ]     • Dart plugin version 173.4700
[        ]     • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[        ] [✓] IntelliJ IDEA Ultimate Edition (version 2017.3.1)
[        ]     • IntelliJ at /Applications/IntelliJ IDEA.app
[        ]     • Flutter plugin version 25.0.1
[        ]     • Dart plugin version 173.3942.31
[        ] [✓] Connected device (2 available)
[        ]     • M5 Note     • 621MECQH3FLM2                            • android-arm64 • Android 6.0 (API 23)
[        ]     • iPhone • 50c8d8d6c76c8fc70921c11657806153444ececb • ios           • iOS 12.1
[        ] ! Doctor found issues in 1 category.
[  +18 ms] "flutter doctor" took 8,156ms.

What should I do?

@ciscolxh

This comment has been minimized.

ciscolxh commented Dec 8, 2018

I have done these actions but did not solve the problem
What should I do?
run:

[ ] 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
@sjmcdowall

This comment has been minimized.

Contributor

sjmcdowall commented Dec 8, 2018

@chalin chalin referenced this issue Dec 9, 2018

Open

Issue a release #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment