Skip to content
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

How to run idb_companion --udid {id of the iOS device} for iOS Developer #134

Closed
JARNBOY opened this issue Sep 6, 2022 · 5 comments
Closed
Labels
platform: ios Testing iOS apps is affected

Comments

@JARNBOY
Copy link

JARNBOY commented Sep 6, 2022

In my case when run idb_companion --udid {id of the iOS device} .
Result not show same tutorial it's show "Companion will stay alive if target goes offline" only

@JARNBOY JARNBOY changed the title How to run idb_companion --udid {id of the iOS device} How to run idb_companion --udid {id of the iOS device} for iOS Developer Sep 6, 2022
@dmitry-zaitsev
Copy link
Contributor

Could you share what it shows to you?

@dmitry-zaitsev dmitry-zaitsev added help wanted platform: ios Testing iOS apps is affected labels Sep 6, 2022
@JARNBOY
Copy link
Author

JARNBOY commented Sep 6, 2022

paponsupamongkonchai@Papons-MacBook-Pro ~ % idb_companion --udid B9F87DB5-4460-49D9-8D9E-81CDCB562D02
2565-09-06 22:00:55.163+0700 IDB Companion Built at Aug 12 2022 08:41:51
2565-09-06 22:00:55.165+0700 IDB Companion architecture x86_64
2565-09-06 22:00:55.165+0700 Invoked with args=[/usr/local/bin/idb_companion, --udid, B9F87DB5-4460-49D9-8D9E-81CDCB562D02] env={TERM_SESSION_ID => BE0C18E6-00B5-47A0-B087-2E4B8241BFFC, SSH_AUTH_SOCK => /private/tmp/com.apple.launchd.azbCwegFGt/Listeners, OLDPWD => /Users/paponsupamongkonchai, XPC_FLAGS => 0x0, PWD => /Users/paponsupamongkonchai, SHELL => /bin/zsh, __CFBundleIdentifier => com.apple.Terminal, SECURITYSESSIONID => 186a4, LC_CTYPE => UTF-8, TERM_PROGRAM_VERSION => 445, TERM_PROGRAM => Apple_Terminal, PATH => /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin, SHLVL => 1, TERM => xterm-256color, _ => /usr/local/bin/idb_companion, HOME => /Users/paponsupamongkonchai, TMPDIR => /var/folders/gp/ws0zrffd60n9lrhr4jgj_chr0000gn/T/, USER => paponsupamongkonchai, XPC_SERVICE_NAME => 0, LOGNAME => paponsupamongkonchai, LaunchInstanceID => 1979135B-B152-4515-8FFB-8A6583B9C9FD, __CF_USER_TEXT_ENCODING => 0x1F5:0x0:0x0}
2565-09-06 22:00:55.269+0700 Providing targets across Simulator and Device sets.
2565-09-06 22:00:55.377+0700 CoreSimulator: Loading from /Library/Developer/PrivateFrameworks/CoreSimulator.framework
2565-09-06 22:00:55.409+0700 CoreSimulator: Successfully loaded
2565-09-06 22:00:55.409+0700 CoreSimulator: SimDevice has correct path of /Library/Developer
2565-09-06 22:00:55.409+0700 AccessibilityPlatformTranslation: Already loaded, skipping
2565-09-06 22:00:55.409+0700 AccessibilityPlatformTranslation: AXPTranslationObject has correct path of /System/Library
2565-09-06 22:00:55.409+0700 Loaded All Private Frameworks [CoreSimulator, AccessibilityPlatformTranslation]
2565-09-06 22:00:55.489+0700 MobileDevice: Loading from /System/Library/PrivateFrameworks/MobileDevice.framework
2565-09-06 22:00:55.494+0700 MobileDevice: Successfully loaded
2565-09-06 22:00:55.494+0700 Loaded All Private Frameworks [MobileDevice]
2565-09-06 22:00:55.496+0700 [framework_loader] MobileDevice: Loading from /System/Library/PrivateFrameworks/MobileDevice.framework
2565-09-06 22:00:55.496+0700 [framework_loader] MobileDevice: Successfully loaded
2565-09-06 22:00:55.496+0700 [framework_loader] Loaded All Private Frameworks [MobileDevice]
Sep  6 22:00:55  idb_companion[2297] <Notice>: _SubscribeForMuxNotifications (thread 0x118d5d600): returned 0x0.
Sep  6 22:00:55  idb_companion[2297] <Notice>: _AMDDeviceAttachedCallbackv3 (thread 0x118d5d600): Device 'AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8}' attached.
2565-09-06 22:00:55.501+0700 Connecting to AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8}
2565-09-06 22:00:55.507+0700 Checking whether AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8} is paired
2565-09-06 22:00:55.534+0700 <AMRestorableDevice 0x7f78b9133550 [0x7ff86234fd70]> connected in state Booted
Sep  6 22:00:55  idb_companion[2297] <Notice>: AMDeviceStopSession (thread 0x118d5d600): returned 0x0 for device 1
2565-09-06 22:00:55.588+0700 Validating Pairing to AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8}
Sep  6 22:00:55  idb_companion[2297] <Notice>: AMDeviceStopSession (thread 0x7000073a0000): returned 0x0 for device 1
2565-09-06 22:00:55.605+0700 Caching restorable device values {
    ChipID = 32816;
    DeviceClass = 1;
    DeviceName = "Papon Supamongkonchai\U2019s iPhone";
    LocationID = 337772544;
    ProductType = "iPhone12,3";
    SerialNumber = DNPZL0FBN6Y3;
    UniqueChipID = 674825907634222;
}
2565-09-06 22:00:55.606+0700 Device Connected <AMRestorableDevice 0x7f78b9133550 [0x7ff86234fd70]>
2565-09-06 22:00:55.606+0700 Created a new Device instance <FBAMRestorableDevice: 0x7f78b9205200>
2565-09-06 22:00:55.606+0700 Existing Device <AMRestorableDevice 0x7f78b9133550 [0x7ff86234fd70]> is the same as the old
2565-09-06 22:00:55.606+0700 <FBAMRestorableDevice: 0x7f78b9205200> appeared for the first time
2565-09-06 22:00:55.606+0700 unknown | Papon Supamongkonchai’s iPhone | Booted | iPhone12,3 | OS 'unknown' | unknown appeared for the first time
Sep  6 22:00:55  idb_companion[2297] <Notice>: AMDeviceStopSession (thread 0x118d5d600): returned 0x0 for device 1
2565-09-06 22:00:55.649+0700 Starting Session on AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8}
2565-09-06 22:00:55.735+0700 Stopping Session on AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8}
Sep  6 22:00:55  idb_companion[2297] <Notice>: AMDeviceStopSession (thread 0x118d5d600): returned 0x0 for device 1
2565-09-06 22:00:55.739+0700 Disconnecting from AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8}
2565-09-06 22:00:55.739+0700 Disconnected from AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8}
2565-09-06 22:00:55.740+0700 Obtained Device Values {
    ActivationState = Activated;
    BasebandActivationTicketVersion = V2;
    BasebandCertId = 524245983;
    BasebandChipID = 104;
    BasebandKeyHashInformation =     {
        AKeyStatus = 64;
        SKeyStatus = 2;
    };
    BasebandMasterKeyHash = 1B41607650EBF11C6B39F41CB267DC64C121A9BCF44DBA5D28F55ACC86361BBA366554CD57B4C466055803E1EF81C870;
    BasebandRegionSKU = {length = 64, bytes = 0x00000000 00000000 00000000 00000000 ... 00000000 00000000 };
    BasebandSerialNumber = {length = 12, bytes = 0xcb736c47997749a300000000};
    BasebandStatus = BBInfoAvailable;
    BasebandVersion = "3.04.01";
    BluetoothAddress = "74:42:8b:41:e4:d7";
    BoardId = 6;
    BrickState = 0;
    BuildVersion = 19G82;
    CPUArchitecture = arm64e;
    CarrierBundleInfoArray =     (
                {
            CFBundleIdentifier = "com.apple.AIS_th";
            CFBundleVersion = "50.0";
            IntegratedCircuitCardIdentity = 8966032030573505271;
            InternationalMobileSubscriberIdentity = 520039504314508;
            MCC = 520;
            MNC = 03;
            MobileEquipmentIdentifier = 35384210331950;
            Slot = kOne;
            kCTPostponementInfoAvailable = SIMCarrierInfo;
        }
    );
    CertID = 524245983;
    ChipID = 32816;
    ChipSerialNo = {length = 12, bytes = 0xcb736c47997749a300000000};
    DeviceClass = iPhone;
    DeviceColor = 1;
    DeviceName = "Papon Supamongkonchai\U2019s iPhone";
    DieID = 674825907634222;
    EthernetAddress = "74:42:8b:30:71:57";
    FirmwareVersion = "iBoot-7459.140.15";
    FusingStatus = 3;
    HardwareModel = D421AP;
    HardwarePlatform = t8030;
    HasSiDP = 1;
    HostAttached = 1;
    IntegratedCircuitCardIdentity = 8966032030573505271;
    InternationalMobileEquipmentIdentity = 353842103319503;
    InternationalMobileEquipmentIdentity2 = 353842103232318;
    InternationalMobileSubscriberIdentity = 520039504314508;
    InternationalMobileSubscriberIdentityOverride = 0;
    IsPaired = 1;
    MLBSerialNumber = F3X94260HNPLTPHA;
    MobileEquipmentIdentifier = 35384210331950;
    MobileSubscriberCountryCode = 520;
    MobileSubscriberNetworkCode = 03;
    ModelNumber = MWC32;
    NonVolatileRAM =     {
        "auto-boot" = {length = 4, bytes = 0x74727565};
        "backlight-level" = {length = 3, bytes = 0x353938};
        "backlight-nits" = {length = 10, bytes = 0x30783030396230303030};
        "boot-args" = "";
        "fm-account-masked" = {length = 28, bytes = 0x74e280a2 e280a2e2 80a2e280 a2e280a2 ... 6c6f6f6b 2e636f6d };
        "fm-activation-locked" = {length = 3, bytes = 0x594553};
        "fm-spkeys" = {length = 238, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 000000b9 };
        "fm-spstatus" = {length = 3, bytes = 0x594553};
        "oblit-begins" = {length = 57, bytes = 0x4f626c69 74547970 653a204f 626c6974 ... 53657474 696e6773 };
        obliteration = {length = 38, bytes = 0x68616e64 6c655f6d 65737361 67653a20 ... 6f6d706c 6574650a };
        "ota-controllerVersion" = {length = 7, bytes = 0x5355532d322e30};
        usbcfwflasherResult = {length = 9, bytes = 0x4e6f206572726f7273};
    };
    "PRIVersion_Major" = 0;
    "PRIVersion_Minor" = 0;
    "PRIVersion_ReleaseNo" = 2;
    PairRecordProtectionClass = 4;
    PartitionType = "GUID_partition_scheme";
    PasswordProtected = 1;
    PhoneNumber = "+66 97-479-5516";
    PkHash = {length = 32, bytes = 0x1f3f5bdf c592457f dc13aa9a 9b4c447d ... 5a34cfbb 658e5d55 };
    ProductName = "iPhone OS";
    ProductType = "iPhone12,3";
    ProductVersion = "15.6.1";
    ProductionSOC = 1;
    ProtocolVersion = 2;
    ProximitySensorCalibration = {length = 144, bytes = 0x7f7a0005 32001e00 a24c6941 46ae1d42 ... 02000000 00000081 };
    RegionInfo = "TH/A";
    SIM1IsEmbedded = 0;
    SIMStatus = kCTSIMSupportSIMStatusReady;
    SIMTrayStatus = kCTSIMSupportSIMTrayInsertedWithSIM;
    SerialNumber = DNPZL0FBN6Y3;
    SoftwareBehavior = {length = 16, bytes = 0x01000000000000000000000000000000};
    SoftwareBundleVersion = "";
    SupportedDeviceFamilies =     (
        1
    );
    TelephonyCapability = 1;
    TimeIntervalSince1970 = "1662476455.855248";
    TimeZone = "Asia/Bangkok";
    TimeZoneOffsetFromUTC = 25200;
    TrustedHostAttached = 1;
    UniqueChipID = 674825907634222;
    UniqueDeviceID = "00008030-000265C02682802E";
    UseRaptorCerts = 1;
    Uses24HourClock = 1;
    WiFiAddress = "74:42:8b:2d:c0:e1";
    WirelessBoardSerialNumber = F0017AFA3D9;
    "com.apple.mobile.backup" =     {
        CloudBackupEnabled = 1;
        RequiresEncryption = 1;
        Version = "2.0";
    };
    kCTPostponementInfoPRIVersion = "0.0.2";
    kCTPostponementInfoServiceProvisioningState = 1;
    kCTPostponementStatus = kCTPostponementStatusActivated;
}
2565-09-06 22:00:55.742+0700 Device Connected AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8}
2565-09-06 22:00:55.742+0700 Created a new Device instance AMDevice 00008030-000265C02682802E | Papon Supamongkonchai’s iPhone
2565-09-06 22:00:55.742+0700 New 'AMDevice 0x600001608000 {UDID = 00008030-000265C02682802E, device ID = 1, location ID = 0x14220000, product ID = 0x12a8}' appeared for the first time
2565-09-06 22:00:55.742+0700 AMDevice 00008030-000265C02682802E | Papon Supamongkonchai’s iPhone appeared for the first time
2565-09-06 22:00:55.758+0700 Starting swift server on tcp port 10882
2565-09-06 22:00:55.759+0700 Swift server started on [IPv6]::/:::10882
{"grpc_swift_port":10882,"grpc_port":10882}
2565-09-06 22:00:55.759+0700 Companion will stay alive if target goes offline


@JARNBOY
Copy link
Author

JARNBOY commented Sep 6, 2022

In log last line is show this massage "Companion will stay alive if target goes offline"

@dmitry-zaitsev
Copy link
Contributor

Yes, that is a correct behaviour. Now you can run maestro in a separate terminal window

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.
Thank you for helping keep us our issue tracker clean!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: ios Testing iOS apps is affected
Projects
None yet
Development

No branches or pull requests

2 participants