Skip to content

Investigate alternatives to libimobiledevice  #6118

Open

Description

@cbracken

Given #5397, #6067, #6105, it's clear there's some risk in depending on libimobiledevice, particularly around new Xcode/iOS release times.

Activity

  1. self-assigned this
    on Sep 28, 2016
  2. modified the milestone: on Nov 29, 2016
  3. eseidelGoogle commented on Feb 8, 2017

    @eseidelGoogle
    Contributor

    I don't think there is anything to do here? Speculatively closing, please reopen if you'd prefer to track via bug.

  4. cbracken commented on May 23, 2017

    @cbracken
    MemberAuthor

    Reopening to look at Apple Configurator.

  5. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on May 23, 2017
  6. cbracken commented on May 23, 2017

    @cbracken
    MemberAuthor

    Yep. This covers installation, listing devices, and logging. It doesn't cover launch, but we use ios-deploy for that, which doesn't depend on libimobiledevice.

  7. removed their assignment
    on Dec 9, 2017
  8. 1 remaining item

  9. changed the title [-]Investigate alternatives to libimobiledevice[/-] [+]Investigate alternatives to libimobiledevice [/+] on Jan 13, 2020
  10. christopherfujino commented on Jan 16, 2020

    @christopherfujino
    Contributor

    I believe, according to @jmagman, that Apple Configurator would not be a complete replacement for what we use libimobiledevice for. However, we should keep this issue open, and continue to look for better replacements.

  11. cbracken commented on Jan 16, 2020

    @cbracken
    MemberAuthor

    While it's still fresh in your minds, please document the gaps between Apple Configurator and libimobiledevice. Going from memory, here's what I remember:

    • Apple Configurator does not provide a replacement for iproxy (this alone is probably a deal-breaker)
    • ideviceinfo provides more detailed and more-easily-parsed device info (used in doctor) and that lookup is much quicker than it was in Apple Configurator
    • Not specifically libimobiledevice, but Apple Configurator doesn't provide a means to launch apps from the host (neither does libimobiledevice -- we use ios-deploy for this).
  12. christopherfujino commented on Jan 16, 2020

    @christopherfujino
    Contributor

    ^ that's my understanding as well. I would add that it's not certain that it will receive better support moving further.

  13. jmagman commented on Jan 16, 2020

    @jmagman
    Member

    Apple Configurator does not provide a replacement for iproxy (this alone is probably a deal-breaker)
    Not specifically libimobiledevice, but Apple Configurator doesn't provide a means to launch apps from the host (neither does libimobiledevice -- we use ios-deploy for this).

    All true AFAIK. You can install an app but you can't launch it.

    ideviceinfo provides more detailed and more-easily-parsed device info (used in doctor)

    If the user installs the cfgutil command tool (in the app it's Apple Configurator 2 > Install Automation Tools...) then there's actually a lot of information (ideviceinfo has access to a subset of these lockdown keys). Though that's kind of a big ask, and it IS pretty slow though, like ~3 seconds on my machine.
    Supported properties:

        acceptsSupervision,
        activationState,
        appDiskUsage,
        audioDiskUsage,
        backupWillBeEncrypted,
        batteryCurrentCapacity,
        batteryIsCharging,
        bluetoothAddress,
        booksDiskUsage,
        bootedState,
        buildVersion,
        cloudBackupsAreEnabled,
        color,
        configurationProfiles,
        deviceClass,
        deviceType,
        documentsDiskUsage,
        ECID,
        enclosureColor,
        ethernetAddress,
        firmwareVersion,
        freeDiskSpace,
        hasTelephonyCapability,
        ICCID,
        ICCID2,
        IMEI,
        IMEI2,
        installedApps,
        isPaired,
        isRestorable,
        isSupervised,
        language,
        locale,
        locationID,
        logsDiskUsage,
        name,
        organizationAddress,
        organizationDepartment,
        organizationEmail,
        organizationMagic,
        organizationName,
        organizationPhone,
        otherDiskUsage,
        pairingAllowed,
        passcodeProtected,
        phoneNumber,
        phoneNumber2,
        photosDiskUsage,
        portNumber,
        provisioningProfiles,
        serialNumber,
        stationNumber,
        supportedLanguages,
        supportedLocales,
        supportedPropertyNames,
        tags,
        totalDiskCapacity,
        totalSpaceAvailable,
        UDID,
        videoDiskUsage,
        wifiAddress
    
    cfgutil get all example acceptsSupervision: no

    activationState:
    Activated

    appDiskUsage:
    935014400

    audioDiskUsage:
    0

    backupWillBeEncrypted:
    no

    batteryCurrentCapacity:
    91

    batteryIsCharging:
    yes

    bluetoothAddress:
    b4:8b:19:ec:59:cc

    booksDiskUsage:
    69632

    bootedState:
    Booted

    buildVersion:
    17C54

    cloudBackupsAreEnabled:
    Error: The value is missing. (com.apple.configurator.MobileDeviceKit.amd.error -402653163)

    color:
    #e4e7e8

    configurationProfiles:

    deviceClass:
    iPhone

    deviceType:
    iPhone8,1

    documentsDiskUsage:
    1225871360

    ECID:
    0x2296A04A3A3BA

    enclosureColor:
    #e1ccb7

    ethernetAddress:
    b4:8b:19:ec:59:cd

    firmwareVersion:
    13.3

    freeDiskSpace:
    7492976640

    hasTelephonyCapability:
    yes

    ICCID:
    Error: The value is missing. (com.apple.configurator.MobileDeviceKit.amd.error -402653163)

    ICCID2:
    Error: The value is missing. (com.apple.configurator.MobileDeviceKit.amd.error -402653163)

    IMEI:
    353262078723953

    IMEI2:
    Error: The value is missing. (com.apple.configurator.MobileDeviceKit.amd.error -402653163)

    installedApps:
    com.flutterio.MyApp MyApp (MyApp) v1
    com.jennmagder.ScaryBugs ScaryBugs (ScaryBugs) v1.0

    isPaired:
    yes

    isRestorable:
    yes

    isSupervised:
    no

    language:
    en-US

    locale:
    en_US

    locationID:
    338690048

    logsDiskUsage:
    13971456

    name:
    iPhone

    organizationAddress:
    Error: An expected value was not found. (ConfigurationUtilityKit.error 626)

    organizationDepartment:
    Error: An expected value was not found. (ConfigurationUtilityKit.error 626)

    organizationEmail:
    Error: An expected value was not found. (ConfigurationUtilityKit.error 626)

    organizationMagic:
    Error: An expected value was not found. (ConfigurationUtilityKit.error 626)

    organizationName:
    Error: An expected value was not found. (ConfigurationUtilityKit.error 626)

    organizationPhone:
    Error: An expected value was not found. (ConfigurationUtilityKit.error 626)

    otherDiskUsage:
    543754270

    pairingAllowed:
    yes

    passcodeProtected:
    no

    phoneNumber:
    Error: The value is missing. (com.apple.configurator.MobileDeviceKit.amd.error -402653163)

    phoneNumber2:
    Error: The value is missing. (com.apple.configurator.MobileDeviceKit.amd.error -402653163)

    photosDiskUsage:
    14274560

    portNumber:
    Error: An expected value was not found. (ConfigurationUtilityKit.error 626)

    provisioningProfiles:
    (
    {
    expirationDate = "2020-12-03 02:29:52 +0000";
    name = "iOS Team Provisioning Profile: *";
    version = 1;
    },
    {
    expirationDate = "2020-12-16 21:18:18 +0000";
    name = "iOS Team Provisioning Profile: *";
    version = 1;
    },
    {
    expirationDate = "2020-07-24 18:21:39 +0000";
    name = "iOS Team Provisioning Profile: *";
    version = 1;
    },
    {
    expirationDate = "2020-05-28 18:07:51 +0000";
    name = "iOS Team Provisioning Profile: *";
    version = 1;
    },
    {
    expirationDate = "2020-11-06 19:36:29 +0000";
    name = "iOS Team Provisioning Profile: *";
    version = 1;
    },
    {
    expirationDate = "2020-10-16 17:52:52 +0000";
    name = "iOS Team Provisioning Profile: *";
    version = 1;
    }
    )

    serialNumber:

    stationNumber:
    Error: An expected value was not found. (ConfigurationUtilityKit.error 626)

    supportedLanguages:
    (
    en,
    "en-GB",
    "en-AU",
    "en-IN",
    "zh-Hans",
    "zh-Hant",
    "zh-HK",
    ja,
    es,
    "es-419",
    fr,
    "fr-CA",
    de,
    ru,
    "pt-BR",
    "pt-PT",
    it,
    ko,
    tr,
    nl,
    ar,
    th,
    sv,
    da,
    vi,
    nb,
    pl,
    fi,
    id,
    he,
    el,
    ro,
    hu,
    cs,
    ca,
    sk,
    uk,
    hr,
    ms,
    hi
    )

    supportedLocales:
    (
    "sv_AX",
    "en_CN",
    "ro_RO",
    "en_VG",
    "es_VC",
    "fr_MA",
    "en_AL",
    "es_TT",
    "ar_SS",
    "fr_VU",
    "fr_CI",
    "en_BW",
    "en_JM",
    "es_BS",
    "en_BD",
    "en_MG",
    "en_PT",
    "en_HK",
    "fr_GN",
    "ru_UA",
    "ar_LB",
    "en_CO",
    "en_KE",
    "en_NR",
    "fr_MU",
    "en_FI",
    "es_AI",
    "nl_BQ",
    "en_WS",
    "en_DG",
    "ar_SA",
    "en_RW",
    "es_GP",
    "en_ZM",
    "en_BE",
    "el_CY",
    "en_MH",
    "en_ER",
    "nl_NL",
    "pt_AO",
    "en_KY",
    "es_CL",
    "en_VI",
    "en_FJ",
    "es_VE",
    "fr_MC",
    "en_TZ",
    "en_ID",
    "es_TC",
    "zh_TW",
    "en_GU",
    "es_GQ",
    "en_GB",
    "es_MX",
    "en_ES",
    "es_BB",
    "es_PR",
    "fr_GP",
    "pt_GW",
    "fi_FI",
    "en_FK",
    "en_NA",
    "zh_CN",
    "en_IE",
    "en_LR",
    "ca_IT",
    "en_TH",
    "ar_KM",
    "en_BZ",
    "de_CH",
    "en_JP",
    "da_GL",
    "en_US",
    "en_BG",
    "ar_QA",
    "en_PW",
    "ar_TN",
    "es_MF",
    "fr_GQ",
    "de_LI",
    "cs_CZ",
    "en_NU",
    "zh_HK",
    "hu_HU",
    "es_VG",
    "ar_EG",
    "ro_MD",
    "en_LS",
    "fr_CM",
    "ar_SD",
    "en_GD",
    "ar_IL",
    "ar_LY",
    "en_UA",
    "fr_TD",
    "pt_LU",
    "es_PA",
    "en_KI",
    "es_CO",
    "en_FM",
    "fr_MF",
    "tr_CY",
    "ar_EH",
    "en_LT",
    "es_IC",
    "en_DK",
    "pt_ST",
    "es_GT",
    "fr_YT",
    "ms_BN",
    "en_BI",
    "he_IL",
    "pt_TL",
    "en_SS",
    "es_KY",
    "en_CA",
    "es_VI",
    "ar_MR",
    "fr_MG",
    "en_AR",
    "hr_HR",
    "en_LU",
    "en_TK",
    "fr_SN",
    "ar_SY",
    "en_GY",
    "pt_CV",
    "en_MM",
    "es_ES",
    "fr_DZ",
    "ar_AE",
    "en_001",
    "ca_ES",
    "en_PG",
    "fr_RW",
    "fr_GA",
    "en_SA",
    "fr_BE",
    "es_FK",
    "hi_IN",
    "en_AS",
    "pt_MO",
    "en_LV",
    "en_DM",
    "en_LC",
    "en_GG",
    "tr_TR",
    "es_BZ",
    "zh-Hans_MO",
    "es_US",
    "en_150",
    "it_VA",
    "fr_TG",
    "en_EE",
    "en_HR",
    "es_EA",
    "es_HN",
    "sv_FI",
    "ms_SG",
    "en_PH",
    "es_CR",
    "fr_RE",
    "en_SB",
    "fr_BF",
    "en_NF",
    "en_CC",
    "it_CH",
    "en_AT",
    "ar_MA",
    "nl_BE",
    "en_GH",
    "th_TH",
    "es_GD",
    "pt_FR",
    "en_ZA",
    "en_MO",
    "de_IT",
    "es_PE",
    "es_SR",
    "de_DE",
    "en_SC",
    "en_NZ",
    "en_NG",
    "en_AU",
    "el_GR",
    "en_GI",
    "ar_001",
    "en_BM",
    "ar_IQ",
    "en_MP",
    "es_PY",
    "fr_DJ",
    "es_EC",
    "en_US_POSIX",
    "vi_VN",
    "en_CX",
    "en_KN",
    "en_SD",
    "en_FR",
    "es_CA",
    "en_IL",
    "es_AR",
    "en_TO",
    "zh-Hans_HK",
    "es_GY",
    "fr_NC",
    "es_GF",
    "en_UG",
    "en_HU",
    "en_PK",
    "en_SX",
    "uk_UA",
    "en_CY",
    "en_SE",
    "es_CU",
    "sk_SK",
    "fr_BI",
    "fr_ML",
    "de_BE",
    "en_IM",
    "fr_PF",
    "en_AD",
    "es_DM",
    "es_LC",
    "en_ZW",
    "fr_CA",
    "pl_PL",
    "pt_CH",
    "nl_SR",
    "ja_JP",
    "en_JE",
    "fr_LU",
    "en_PL",
    "es_PH",
    "zh_MO",
    "fr_GF",
    "en_CZ",
    "fr_BJ",
    "en_IN",
    "en_AE",
    "fr_NE",
    "en_RO",
    "en_MS",
    "es_BL",
    "es_419",
    "it_IT",
    "ar_TD",
    "en_SZ",
    "fr_WF",
    "ru_MD",
    "es_SV",
    "en_SG",
    "es_CW",
    "en_CH",
    "pt_BR",
    "en_IO",
    "ar_PS",
    "en_TR",
    "ar_KW",
    "es_DO",
    "en_GM",
    "it_SM",
    "ms_MY",
    "es_UY",
    "en_MT",
    "es_BM",
    "en_PN",
    "es_HT",
    "en_KR",
    "en_SH",
    "en_VU",
    "es_KN",
    "fr_BL",
    "en_NL",
    "ca_FR",
    "en_AG",
    "fr_KM",
    "fr_SC",
    "fr_CD",
    "ko_KP",
    "nb_SJ",
    "zh-Hant_CN",
    "en_MU",
    "en_BR",
    "fr_TN",
    "ru_RU",
    "es_MQ",
    "ar_DZ",
    "es_SX",
    "en_SI",
    "hr_BA",
    "es_NI",
    "en_VC",
    "ar_ER",
    "fr_HT",
    "es_AW",
    "en_TT",
    "ar_SO",
    "ca_AD",
    "fr_FR",
    "da_DK",
    "en_BS",
    "en_MV",
    "es_BO",
    "nl_CW",
    "nb_NO",
    "de_LU",
    "pt_GQ",
    "ar_JO",
    "en_CK",
    "fr_MQ",
    "zh_SG",
    "en_AI",
    "fr_CF",
    "ko_KR",
    "es_GL",
    "en_RS",
    "en_MW",
    "en_UM",
    "es_MS",
    "en_BA",
    "es_PM",
    "en_SK",
    "en_CL",
    "en_NO",
    "fr_MR",
    "en_IS",
    "en_TV",
    "fr_SY",
    "en_TC",
    "fr_CG",
    "nl_SX",
    "es_BQ",
    "en_MX",
    "ru_BY",
    "sv_SE",
    "en_ME",
    "de_AT",
    "en_PR",
    "ar_DJ",
    "en_BB",
    "ar_OM",
    "en_SL",
    "nl_AW",
    "en_CM",
    "ru_KZ",
    "ar_YE",
    "ar_BH",
    "ru_KG",
    "en_IT",
    "id_ID",
    "fr_PM",
    "en_TW",
    "pt_MZ",
    "es_AG",
    "pt_PT",
    "en_DE",
    "fr_CH",
    "en_GR",
    "en_RU",
    "en_MY",
    "es_BR"
    )

    supportedPropertyNames:
    (
    acceptsSupervision,
    activationState,
    appDiskUsage,
    audioDiskUsage,
    backupWillBeEncrypted,
    batteryCurrentCapacity,
    batteryIsCharging,
    bluetoothAddress,
    booksDiskUsage,
    bootedState,
    buildVersion,
    cloudBackupsAreEnabled,
    color,
    configurationProfiles,
    deviceClass,
    deviceType,
    documentsDiskUsage,
    ECID,
    enclosureColor,
    ethernetAddress,
    firmwareVersion,
    freeDiskSpace,
    hasTelephonyCapability,
    ICCID,
    ICCID2,
    IMEI,
    IMEI2,
    installedApps,
    isPaired,
    isRestorable,
    isSupervised,
    language,
    locale,
    locationID,
    logsDiskUsage,
    name,
    organizationAddress,
    organizationDepartment,
    organizationEmail,
    organizationMagic,
    organizationName,
    organizationPhone,
    otherDiskUsage,
    pairingAllowed,
    passcodeProtected,
    phoneNumber,
    phoneNumber2,
    photosDiskUsage,
    portNumber,
    provisioningProfiles,
    serialNumber,
    stationNumber,
    supportedLanguages,
    supportedLocales,
    supportedPropertyNames,
    tags,
    totalDiskCapacity,
    totalSpaceAvailable,
    UDID,
    videoDiskUsage,
    wifiAddress
    )

    tags:

    totalDiskCapacity:
    16000000000

    totalSpaceAvailable:
    10875670528

    UDID:
    d83d5bc53967baa0ee18626ba87b6254b2ab5418

    videoDiskUsage:
    0

    wifiAddress:

    </details>
    
  14. jmagman commented on Feb 7, 2020

    @jmagman
    Member

    idevicename, ideviceinfo, and idevice_id have been removed.
    Still using ios-deploy, idevicesyslog, idevicescreenshot, ideviceinstaller, and iproxy.

  15. removed this from the milestone on Dec 10, 2020
  16. added
    P3Issues that are less important to the Flutter project
    and removed on Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectplatform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions