Failed to connect to physical ios device as it fails to pull certs from app
See original GitHub issue🐛 Bug Report
I can’t connect to my physical iOS device as some idb operations fail. The operation is this one:
/usr/local/bin/idb --log DEBUG file pull --udid 1aad521b3f780ba7705b15ccc861e60a2c266cc5 --bundle-id nl.skillnation.overscore 'Library/Application Support/sonar/app.csr' '/var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle'
The error I get is this one (see below for full stack trace):
grpclib.exceptions.GRPCError: (<Status.INTERNAL: 13>, 'Failed to write data to file at path /var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle', None)
The thing I found out is that tmp-63878-J4Ol6IPicmle is a directory. Running this command manually also fails with the same error. When instead running the command like this (specifying a file name as destination), it works:
/usr/local/bin/idb --log DEBUG file pull --udid 1aad521b3f780ba7705b15ccc861e60a2c266cc5 --bundle-id nl.skillnation.overscore 'Library/Application Support/sonar/app.csr' '/var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle/app.csr'
Full stacktrace first error:
Error: Command failed: /usr/local/bin/idb --log DEBUG file pull --udid 1aad521b3f780ba7705b15ccc861e60a2c266cc5 --bundle-id nl.skillnation.overscore 'Library/Application Support/sonar/app.csr' '/var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle'
2021-10-28 14:03:07,740 [DEBUG] - pull - FSPullCommand command run with: Namespace(bundle_id='nl.skillnation.overscore', companion=None, companion_local=False, companion_path='/usr/local/bin/idb_companion', companion_tls=False, compression=None, container_type=None, dst='/var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle', file='pull', json=False, log_level='DEBUG', log_level_deprecated=None, prune_dead_companion=True, root_command='file', src=BundleWithPath(bundle_id=None, path='Library/Application Support/sonar/app.csr'), udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5')
2021-10-28 14:03:07,741 [DEBUG] - idb - FSPullCommand called
2021-10-28 14:03:07,741 [DEBUG] - pull - Got existing companion CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=52719), metadata={})
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Adding (b':method', b'POST') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Encoding 3 with 7 bits
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Adding (b':scheme', b'http') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Adding (b':path', b'/idb.CompanionService/connect') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Encoding 4 with 6 bits
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Encoding 21 with 7 bits
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Adding (b':authority', b'localhost:52719') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 1 with 6 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 11 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Adding (b'te', b'trailers') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 2 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Adding (b'content-type', b'application/grpc') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 31 with 6 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 11 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Adding (b'user-agent', b'grpc-python-grpclib/0.4.2 (darwin; cpython/3.8.12)') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 58 with 6 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 38 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoded header block to b'\x83\x86D\x95`\xd2F\xbd\xe3\xd3X\xea1\xea\xdc[;\x98\x85`\x87\xaa\xa2\x91?A\x8b\xa0\xe4\x1d\x13\x9d\t\xb8\xd8\x9d\x0b\xff@\x82I\x7f\x86M\x835\x05\xb1\x1f_\x8b\x1du\xd0b\r&=LMedz\xa6\x9a\xca\xc8\xb5~\x939\xeaZk+%\x06\x8d\x80.\xd2\xe2S\xfa\x90vx5_j\x12\xbfI\x9c\xf50\xca\xef.\x11\x7f\x7f'
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoding b'\x88@\x0ccontent-type\x10application/grpc@\x14grpc-accept-encoding\x15identity,deflate,gzip@\x0faccept-encoding\ridentity,gzip'
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 8, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (b':status', b'200'), consumed 1
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 16, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (<memory at 0x107979c40>, <memory at 0x107979b80>), total consumed 31 bytes, indexed True
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 20, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 21, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (<memory at 0x107979dc0>, <memory at 0x107979d00>), total consumed 44 bytes, indexed True
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 15, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 13, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (<memory at 0x107979f40>, <memory at 0x107979e80>), total consumed 31 bytes, indexed True
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoding b'@\x0bgrpc-status\x010'
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 11, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 1, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095100>, <memory at 0x108095040>), total consumed 15 bytes, indexed True
2021-10-28 14:03:07,751 [DEBUG] - pull - Constructed client for companion 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:07,751 [DEBUG] - idb - pull called
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b':method', b'POST') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 3 with 7 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b':scheme', b'http') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b':path', b'/idb.CompanionService/pull') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 4 with 6 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 19 with 7 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b':authority', b'localhost:52719') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 66 with 7 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b'te', b'trailers') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Encoding 65 with 7 bits
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Adding (b'content-type', b'application/grpc') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Encoding 64 with 7 bits
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Adding (b'user-agent', b'grpc-python-grpclib/0.4.2 (darwin; cpython/3.8.12)') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Encoding 63 with 7 bits
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Encoded header block to b'\x83\x86D\x93`\xd2F\xbd\xe3\xd3X\xea1\xea\xdc[;\x98\x85b\xbbh\xa3\xc2\xc1\xc0\xbf'
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoding b'\x88\xc1\x0f/\x0213@\x0cgrpc-messagelFailed to write data to file at path /var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle'
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoded 8, consumed 1 bytes
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoded (b':status', b'200'), consumed 1
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoded 65, consumed 1 bytes
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoded (<memory at 0x107979c40>, <memory at 0x107979b80>), consumed 1
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded 62, consumed 2 bytes
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded 2, consumed 1 bytes
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095100>, <memory at 0x108095280>), total consumed 5 bytes, indexed False
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded 108, consumed 1 bytes
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095340>, <memory at 0x1080951c0>), total consumed 123 bytes, indexed True
2021-10-28 14:03:09,699 [DEBUG] - idb - pull failed
2021-10-28 14:03:09,699 [DEBUG] - pull - No companion info for 1aad521b3f780ba7705b15ccc861e60a2c266cc5, spawning one...
2021-10-28 14:03:09,700 [DEBUG] - pull - Read targets [{"model":"iPhone 11 Pro","os_version":"iOS 14.5","udid":"4EBDC45C-238C-48D5-BE8C-7B45EAB1DAAB","architecture":"x86_64","type":"simulator","name":"iPhone 11 Pro","state":"Shutdown"},{"model":"Apple TV","os_version":"tvOS 14.5","udid":"6B6D5422-C010-4D11-B1C1-D683243CC42F","architecture":"x86_64","type":"simulator","name":"Apple TV","state":"Shutdown"},{"model":"iPad (8th generation)","os_version":"iOS 14.5","udid":"0A41626D-0DF9-44F6-98DB-3F4E8B58E56C","architecture":"x86_64","type":"simulator","name":"iPad (8th generation)","state":"Shutdown"},{"model":"iPod touch (7th generation)","os_version":"iOS 14.5","udid":"7EB10C53-7EC6-4948-8DC5-B551AEDAED5C","architecture":"x86_64","type":"simulator","name":"iPod touch (7th generation)","state":"Shutdown"},{"model":"Apple TV 4K (2nd generation)","os_version":"tvOS 14.5","udid":"8B6D2C5E-C10E-46E7-AE62-0BF21C5F72B5","architecture":"x86_64","type":"simulator","name":"Apple TV 4K (2nd generation)","state":"Shutdown"},{"model":"Apple TV 4K (at 1080p) (2nd generation)","os_version":"tvOS 14.5","udid":"317A527E-DA6F-41BA-8BEE-F51F1B5A83ED","architecture":"x86_64","type":"simulator","name":"Apple TV 4K (at 1080p) (2nd generation)","state":"Shutdown"},{"model":"Apple Watch Series 6 - 40mm","os_version":"watchOS 7.4","udid":"5D3F212E-3055-409E-BA90-45F03FC32865","architecture":"i386","type":"simulator","name":"Apple Watch Series 6 - 40mm","state":"Shutdown"},{"model":"iPhone 12 mini","os_version":"iOS 14.5","udid":"CBC67A06-14DA-4FBE-A2EF-EB910D9763B9","architecture":"x86_64","type":"simulator","name":"iPhone 12 mini","state":"Shutdown"},{"model":"iPhone 8 Plus","os_version":"iOS 14.5","udid":"CF322364-8131-46AB-8D14-435174B58E6E","architecture":"x86_64","type":"simulator","name":"iPhone 8 Plus","state":"Shutdown"},{"model":"iPhone 11 Pro Max","os_version":"iOS 14.5","udid":"87154151-ECD1-47C9-9A0B-D621BDAA2F8E","architecture":"x86_64","type":"simulator","name":"iPhone 11 Pro Max","state":"Shutdown"},{"device":{"HardwarePlatform":"t8010","DieID":8573862962310438,"EthernetAddress":"b0:70:2d:8f:67:b8","PasswordProtected":false,"Uses24HourClock":false,"kCTPostponementInfoServiceProvisioningState":true,"BluetoothAddress":"b0:70:2d:8f:67:b7","IsPaired":true,"TimeZone":"Europe\/Berlin","BasebandStatus":"BBInfoAvailable","BrickState":false,"HardwareModel":"D111AP","DeviceName":"iPhone von Hanno ","SoftwareBundleVersion":"","PartitionType":"GUID_partition_scheme","MLBSerialNumber":"F3Y64810TLJGY4TA","InternationalMobileEquipmentIdentity":"353807082891343","WiFiAddress":"b0:70:2d:8f:67:b6","BasebandVersion":"4.03.00","BasebandMasterKeyHash":"8CB15EE4C8002199070D9500BB8FB183B02713A5CA2A6B92DB5E75CE15536182","WirelessBoardSerialNumber":"F5026F4565","CarrierBundleInfoArray":[],"TelephonyCapability":true,"BasebandKeyHashInformation":{"AKeyStatus":0,"SKeyStatus":0},"UseRaptorCerts":true,"CPUArchitecture":"arm64","ProductVersion":"13.6.1","ActivationStateAcknowledged":true,"SIMStatus":"kCTSIMSupportSIMStatusNotInserted","BoardId":14,"RegionInfo":"ZD\/A","com.apple.mobile.backup":{"CloudBackupEnabled":true,"Version":"2.0","LastiTunesBackupTZ":"GMT+1","LastiTunesBackupDate":597002551,"WillEncrypt":false,"RequiresEncryption":0,"LastCloudBackupTZ":"GMT+2","LastCloudBackupDate":657055593},"FusingStatus":3,"HostAttached":true,"ProductionSOC":true,"TrustedHostAttached":true,"DeviceClass":"iPhone","ChipID":32784,"SIMTrayStatus":"kCTSIMSupportSIMTrayInsertedNoSIM","HasSiDP":true,"BasebandChipID":96,"UniqueDeviceID":"1aad521b3f780ba7705b15ccc861e60a2c266cc5","BasebandCertId":1421084145,"FirmwareVersion":"iBoot-5540.140.12","TimeZoneOffsetFromUTC":7200,"ModelNumber":"MN4V2","MobileSubscriberNetworkCode":"","MobileSubscriberCountryCode":"","SBLockdownEverRegisteredKey":true,"ProductType":"iPhone9,4","ActivationState":"Activated","NonVolatileRAM":{"boot-args":""},"ProtocolVersion":"2","DeviceColor":"1","SerialNumber":"F2MSRRGZHFYD","BasebandActivationTicketVersion":"V2","SupportedDeviceFamilies":[1],"kCTPostponementStatus":"kCTPostponementStatusActivated","CertID":1421084145,"UniqueChipID":8573862962310438,"TimeIntervalSince1970":1635419879.058383,"ProductName":"iPhone OS","BuildVersion":"17G80"},"model":"iPhone 7 Plus","os_version":"iOS 13.6.1","udid":"1aad521b3f780ba7705b15ccc861e60a2c266cc5","architecture":"arm64","type":"device","name":"iPhone von Hanno ","state":"Booted"},{"model":"iPhone SE (2nd generation)","os_version":"iOS 14.5","udid":"DB4E943D-DFD1-4FC6-97D1-1FEF092A4C57","architecture":"x86_64","type":"simulator","name":"iPhone SE (2nd generation)","state":"Shutdown"},{"model":"iPad Air (4th generation)","os_version":"iOS 14.5","udid":"B40FF3AE-A702-446D-85CE-9187FCAFDCA9","architecture":"x86_64","type":"simulator","name":"iPad Air (4th generation)","state":"Shutdown"},{"model":"iPad Pro (9.7-inch)","os_version":"iOS 14.5","udid":"59EFA6BD-EC02-4A7C-B936-C39E5AA9841E","architecture":"x86_64","type":"simulator","name":"iPad Pro (9.7-inch)","state":"Shutdown"},{"model":"iPad Pro (12.9-inch) (5th generation)","os_version":"iOS 14.5","udid":"6E67E0D4-1C84-454E-9535-3E3168054488","architecture":"x86_64","type":"simulator","name":"iPad Pro (12.9-inch) (5th generation)","state":"Shutdown"},{"model":"Apple Watch Series 6 - 44mm","os_version":"watchOS 7.4","udid":"DDC79E51-5F80-428E-B8A7-F7DC297192FD","architecture":"i386","type":"simulator","name":"Apple Watch Series 6 - 44mm","state":"Shutdown"},{"model":"iPhone 11","os_version":"iOS 14.5","udid":"C80D9203-6EDC-4290-85E5-161162C410A1","architecture":"x86_64","type":"simulator","name":"iPhone 11","state":"Shutdown"},{"model":"iPhone 12 Pro Max","os_version":"iOS 14.5","udid":"41B7024B-EAB0-48CF-BA79-351D968E3AC0","architecture":"x86_64","type":"simulator","name":"iPhone 12 Pro Max","state":"Shutdown"},{"model":"iPhone 8","os_version":"iOS 14.5","udid":"E1679C14-D708-4A64-B900-91431E0BCFEE","architecture":"x86_64","type":"simulator","name":"iPhone 8","state":"Shutdown"},{"model":"iPhone 12 Pro","os_version":"iOS 14.5","udid":"CBA42DFE-C2AF-4D04-B9D1-16D6FB263CD9","architecture":"x86_64","type":"simulator","name":"iPhone 12 Pro","state":"Shutdown"},{"model":"iPad Pro (11-inch) (3rd generation)","os_version":"iOS 14.5","udid":"20B9B75C-7E8F-4941-85A3-B5F6FA6C4734","architecture":"x86_64","type":"simulator","name":"iPad Pro (11-inch) (3rd generation)","state":"Shutdown"},{"model":"Apple Watch Series 5 - 44mm","os_version":"watchOS 7.4","udid":"78551BF8-33EC-4F40-9EFC-3D8C7A8A098C","architecture":"i386","type":"simulator","name":"Apple Watch Series 5 - 44mm","state":"Shutdown"},{"model":"Apple Watch Series 5 - 40mm","os_version":"watchOS 7.4","udid":"D5BB6334-E066-4899-89AC-0E4C2BF28119","architecture":"i386","type":"simulator","name":"Apple Watch Series 5 - 40mm","state":"Shutdown"},{"model":"iPhone 12","os_version":"iOS 14.5","udid":"F08583CE-40AB-4E15-8926-9A7D883DC4B0","architecture":"x86_64","type":"simulator","name":"iPhone 12","state":"Booted"}] from /tmp/idb/targets
2021-10-28 14:03:09,700 [INFO] - pull - will attempt to spawn a companion for 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:09,706 [DEBUG] - root - started companion at process id 63940
2021-10-28 14:03:25,481 [DEBUG] - root - Read line from companion: b'{"grpc_port":54492}\n'
2021-10-28 14:03:25,481 [DEBUG] - root - Got update from companion: {'grpc_port': 54492}
2021-10-28 14:03:25,482 [INFO] - pull - saved companion pid 63940
2021-10-28 14:03:25,482 [INFO] - pull - spawned a companion for 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:25,483 [INFO] - pull - Replacing CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=52719), metadata={}) with CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=54492), metadata={})
2021-10-28 14:03:25,483 [INFO] - pull - Companion info changed from [CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=52719), metadata={}), CompanionInfo(udid='F08583CE-40AB-4E15-8926-9A7D883DC4B0', is_local=True, address=TCPAddress(host='localhost', port=54068), metadata={})] to [CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=54492), metadata={}), CompanionInfo(udid='F08583CE-40AB-4E15-8926-9A7D883DC4B0', is_local=True, address=TCPAddress(host='localhost', port=54068), metadata={})], writing to file
2021-10-28 14:03:25,483 [DEBUG] - pull - Got newly launched CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=54492), metadata={}) for udid 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b':method', b'POST') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 3 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b':scheme', b'http') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b':path', b'/idb.CompanionService/connect') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 4 with 6 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 21 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b':authority', b'localhost:54492') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 1 with 6 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 11 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b'te', b'trailers') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 2 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b'content-type', b'application/grpc') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 31 with 6 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 11 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b'user-agent', b'grpc-python-grpclib/0.4.2 (darwin; cpython/3.8.12)') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 58 with 6 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 38 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoded header block to b'\x83\x86D\x95`\xd2F\xbd\xe3\xd3X\xea1\xea\xdc[;\x98\x85`\x87\xaa\xa2\x91?A\x8b\xa0\xe4\x1d\x13\x9d\t\xb8\xdbM>/@\x82I\x7f\x86M\x835\x05\xb1\x1f_\x8b\x1du\xd0b\r&=LMedz\xa6\x9a\xca\xc8\xb5~\x939\xeaZk+%\x06\x8d\x80.\xd2\xe2S\xfa\x90vx5_j\x12\xbfI\x9c\xf50\xca\xef.\x11\x7f\x7f'
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoding b'\x88@\x0ccontent-type\x10application/grpc@\x14grpc-accept-encoding\x15identity,deflate,gzip@\x0faccept-encoding\ridentity,gzip'
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded 8, consumed 1 bytes
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded (b':status', b'200'), consumed 1
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded 16, consumed 1 bytes
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095580>, <memory at 0x1080954c0>), total consumed 31 bytes, indexed True
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded 20, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 21, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095700>, <memory at 0x108095640>), total consumed 44 bytes, indexed True
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 15, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 13, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095880>, <memory at 0x1080957c0>), total consumed 31 bytes, indexed True
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoding b'@\x0bgrpc-status\x010'
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 11, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 1, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095a00>, <memory at 0x108095940>), total consumed 15 bytes, indexed True
2021-10-28 14:03:25,489 [DEBUG] - pull - Constructed client for companion 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:25,490 [DEBUG] - idb - FSPullCommand failed
2021-10-28 14:03:25,490 [ERROR] - root - Exception thrown in main
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/idb/grpc/client.py", line 188, in func_wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/idb/grpc/client.py", line 663, in pull
await stream.recv_message()
File "/usr/local/lib/python3.8/site-packages/grpclib/client.py", line 425, in recv_message
await self.recv_initial_metadata()
File "/usr/local/lib/python3.8/site-packages/grpclib/client.py", line 393, in recv_initial_metadata
self._raise_for_grpc_status(status, message, details)
File "/usr/local/lib/python3.8/site-packages/grpclib/client.py", line 345, in _raise_for_grpc_status
raise GRPCError(status, message, details)
grpclib.exceptions.GRPCError: (<Status.INTERNAL: 13>, 'Failed to write data to file at path /var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle', None)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/idb/grpc/management.py", line 115, in from_udid
yield client
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 67, in _get_client
yield client
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 129, in _run_impl
await self.run_with_client(args=args, client=client)
File "/usr/local/lib/python3.8/site-packages/idb/cli/commands/file.py", line 138, in run_with_client
return await self.run_with_container(
File "/usr/local/lib/python3.8/site-packages/idb/cli/commands/file.py", line 333, in run_with_container
await client.pull(
File "/usr/local/lib/python3.8/site-packages/idb/common/logging.py", line 113, in _async_wrapper
raise ex
File "/usr/local/lib/python3.8/site-packages/idb/common/logging.py", line 88, in _async_wrapper
value = await function(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/idb/grpc/client.py", line 190, in func_wrapper
raise IdbException(e.message) from e # noqa B306
idb.common.types.IdbException: Failed to write data to file at path /var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/idb/cli/main.py", line 310, in gen_main
await root_command.run(args)
File "/usr/local/lib/python3.8/site-packages/idb/common/command.py", line 90, in run
return await self.resolve_command_from_args(args).run(args)
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 107, in run
await self._run_impl(args)
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 129, in _run_impl
await self.run_with_client(args=args, client=client)
File "/usr/local/Cellar/python@3.8/3.8.12_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 189, in __aexit__
await self.gen.athrow(typ, value, traceback)
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 67, in _get_client
yield client
File "/usr/local/Cellar/python@3.8/3.8.12_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 190, in __aexit__
raise RuntimeError("generator didn't stop after athrow()")
RuntimeError: generator didn't stop after athrow()
2021-10-28 14:03:25,494 [ERROR] - asyncio - Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<<async_generator_athrow without __name__>()>>
at ChildProcess.exithandler (child_process.js:312:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:443:11)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:674:12)
Full stacktrace second error
Error: Cannot connect to iOS application. idb_certificate_pull_failedIdb lacks permissions to exchange certificates. Did you install a source build ([FB] or enable certificate exchange)? Error: Command failed: /usr/local/bin/idb --log DEBUG file pull --udid 1aad521b3f780ba7705b15ccc861e60a2c266cc5 --bundle-id nl.skillnation.overscore 'Library/Application Support/sonar/app.csr' '/var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle'
2021-10-28 14:03:07,740 [DEBUG] - pull - FSPullCommand command run with: Namespace(bundle_id='nl.skillnation.overscore', companion=None, companion_local=False, companion_path='/usr/local/bin/idb_companion', companion_tls=False, compression=None, container_type=None, dst='/var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle', file='pull', json=False, log_level='DEBUG', log_level_deprecated=None, prune_dead_companion=True, root_command='file', src=BundleWithPath(bundle_id=None, path='Library/Application Support/sonar/app.csr'), udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5')
2021-10-28 14:03:07,741 [DEBUG] - idb - FSPullCommand called
2021-10-28 14:03:07,741 [DEBUG] - pull - Got existing companion CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=52719), metadata={})
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Adding (b':method', b'POST') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Encoding 3 with 7 bits
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Adding (b':scheme', b'http') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Adding (b':path', b'/idb.CompanionService/connect') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Encoding 4 with 6 bits
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Encoding 21 with 7 bits
2021-10-28 14:03:07,748 [DEBUG] - hpack.hpack - Adding (b':authority', b'localhost:52719') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 1 with 6 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 11 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Adding (b'te', b'trailers') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 2 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Adding (b'content-type', b'application/grpc') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 31 with 6 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 11 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Adding (b'user-agent', b'grpc-python-grpclib/0.4.2 (darwin; cpython/3.8.12)') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 58 with 6 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoding 38 with 7 bits
2021-10-28 14:03:07,749 [DEBUG] - hpack.hpack - Encoded header block to b'\x83\x86D\x95`\xd2F\xbd\xe3\xd3X\xea1\xea\xdc[;\x98\x85`\x87\xaa\xa2\x91?A\x8b\xa0\xe4\x1d\x13\x9d\t\xb8\xd8\x9d\x0b\xff@\x82I\x7f\x86M\x835\x05\xb1\x1f_\x8b\x1du\xd0b\r&=LMedz\xa6\x9a\xca\xc8\xb5~\x939\xeaZk+%\x06\x8d\x80.\xd2\xe2S\xfa\x90vx5_j\x12\xbfI\x9c\xf50\xca\xef.\x11\x7f\x7f'
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoding b'\x88@\x0ccontent-type\x10application/grpc@\x14grpc-accept-encoding\x15identity,deflate,gzip@\x0faccept-encoding\ridentity,gzip'
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 8, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (b':status', b'200'), consumed 1
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 16, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (<memory at 0x107979c40>, <memory at 0x107979b80>), total consumed 31 bytes, indexed True
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 20, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 21, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (<memory at 0x107979dc0>, <memory at 0x107979d00>), total consumed 44 bytes, indexed True
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 15, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 13, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (<memory at 0x107979f40>, <memory at 0x107979e80>), total consumed 31 bytes, indexed True
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoding b'@\x0bgrpc-status\x010'
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 11, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded 1, consumed 1 bytes
2021-10-28 14:03:07,750 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095100>, <memory at 0x108095040>), total consumed 15 bytes, indexed True
2021-10-28 14:03:07,751 [DEBUG] - pull - Constructed client for companion 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:07,751 [DEBUG] - idb - pull called
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b':method', b'POST') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 3 with 7 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b':scheme', b'http') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b':path', b'/idb.CompanionService/pull') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 4 with 6 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 19 with 7 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b':authority', b'localhost:52719') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Encoding 66 with 7 bits
2021-10-28 14:03:07,751 [DEBUG] - hpack.hpack - Adding (b'te', b'trailers') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Encoding 65 with 7 bits
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Adding (b'content-type', b'application/grpc') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Encoding 64 with 7 bits
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Adding (b'user-agent', b'grpc-python-grpclib/0.4.2 (darwin; cpython/3.8.12)') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Encoding 63 with 7 bits
2021-10-28 14:03:07,752 [DEBUG] - hpack.hpack - Encoded header block to b'\x83\x86D\x93`\xd2F\xbd\xe3\xd3X\xea1\xea\xdc[;\x98\x85b\xbbh\xa3\xc2\xc1\xc0\xbf'
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoding b'\x88\xc1\x0f/\x0213@\x0cgrpc-messagelFailed to write data to file at path /var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle'
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoded 8, consumed 1 bytes
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoded (b':status', b'200'), consumed 1
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoded 65, consumed 1 bytes
2021-10-28 14:03:09,698 [DEBUG] - hpack.hpack - Decoded (<memory at 0x107979c40>, <memory at 0x107979b80>), consumed 1
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded 62, consumed 2 bytes
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded 2, consumed 1 bytes
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095100>, <memory at 0x108095280>), total consumed 5 bytes, indexed False
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded 108, consumed 1 bytes
2021-10-28 14:03:09,699 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095340>, <memory at 0x1080951c0>), total consumed 123 bytes, indexed True
2021-10-28 14:03:09,699 [DEBUG] - idb - pull failed
2021-10-28 14:03:09,699 [DEBUG] - pull - No companion info for 1aad521b3f780ba7705b15ccc861e60a2c266cc5, spawning one...
2021-10-28 14:03:09,700 [DEBUG] - pull - Read targets [{"model":"iPhone 11 Pro","os_version":"iOS 14.5","udid":"4EBDC45C-238C-48D5-BE8C-7B45EAB1DAAB","architecture":"x86_64","type":"simulator","name":"iPhone 11 Pro","state":"Shutdown"},{"model":"Apple TV","os_version":"tvOS 14.5","udid":"6B6D5422-C010-4D11-B1C1-D683243CC42F","architecture":"x86_64","type":"simulator","name":"Apple TV","state":"Shutdown"},{"model":"iPad (8th generation)","os_version":"iOS 14.5","udid":"0A41626D-0DF9-44F6-98DB-3F4E8B58E56C","architecture":"x86_64","type":"simulator","name":"iPad (8th generation)","state":"Shutdown"},{"model":"iPod touch (7th generation)","os_version":"iOS 14.5","udid":"7EB10C53-7EC6-4948-8DC5-B551AEDAED5C","architecture":"x86_64","type":"simulator","name":"iPod touch (7th generation)","state":"Shutdown"},{"model":"Apple TV 4K (2nd generation)","os_version":"tvOS 14.5","udid":"8B6D2C5E-C10E-46E7-AE62-0BF21C5F72B5","architecture":"x86_64","type":"simulator","name":"Apple TV 4K (2nd generation)","state":"Shutdown"},{"model":"Apple TV 4K (at 1080p) (2nd generation)","os_version":"tvOS 14.5","udid":"317A527E-DA6F-41BA-8BEE-F51F1B5A83ED","architecture":"x86_64","type":"simulator","name":"Apple TV 4K (at 1080p) (2nd generation)","state":"Shutdown"},{"model":"Apple Watch Series 6 - 40mm","os_version":"watchOS 7.4","udid":"5D3F212E-3055-409E-BA90-45F03FC32865","architecture":"i386","type":"simulator","name":"Apple Watch Series 6 - 40mm","state":"Shutdown"},{"model":"iPhone 12 mini","os_version":"iOS 14.5","udid":"CBC67A06-14DA-4FBE-A2EF-EB910D9763B9","architecture":"x86_64","type":"simulator","name":"iPhone 12 mini","state":"Shutdown"},{"model":"iPhone 8 Plus","os_version":"iOS 14.5","udid":"CF322364-8131-46AB-8D14-435174B58E6E","architecture":"x86_64","type":"simulator","name":"iPhone 8 Plus","state":"Shutdown"},{"model":"iPhone 11 Pro Max","os_version":"iOS 14.5","udid":"87154151-ECD1-47C9-9A0B-D621BDAA2F8E","architecture":"x86_64","type":"simulator","name":"iPhone 11 Pro Max","state":"Shutdown"},{"device":{"HardwarePlatform":"t8010","DieID":8573862962310438,"EthernetAddress":"b0:70:2d:8f:67:b8","PasswordProtected":false,"Uses24HourClock":false,"kCTPostponementInfoServiceProvisioningState":true,"BluetoothAddress":"b0:70:2d:8f:67:b7","IsPaired":true,"TimeZone":"Europe\/Berlin","BasebandStatus":"BBInfoAvailable","BrickState":false,"HardwareModel":"D111AP","DeviceName":"iPhone von Hanno ","SoftwareBundleVersion":"","PartitionType":"GUID_partition_scheme","MLBSerialNumber":"F3Y64810TLJGY4TA","InternationalMobileEquipmentIdentity":"353807082891343","WiFiAddress":"b0:70:2d:8f:67:b6","BasebandVersion":"4.03.00","BasebandMasterKeyHash":"8CB15EE4C8002199070D9500BB8FB183B02713A5CA2A6B92DB5E75CE15536182","WirelessBoardSerialNumber":"F5026F4565","CarrierBundleInfoArray":[],"TelephonyCapability":true,"BasebandKeyHashInformation":{"AKeyStatus":0,"SKeyStatus":0},"UseRaptorCerts":true,"CPUArchitecture":"arm64","ProductVersion":"13.6.1","ActivationStateAcknowledged":true,"SIMStatus":"kCTSIMSupportSIMStatusNotInserted","BoardId":14,"RegionInfo":"ZD\/A","com.apple.mobile.backup":{"CloudBackupEnabled":true,"Version":"2.0","LastiTunesBackupTZ":"GMT+1","LastiTunesBackupDate":597002551,"WillEncrypt":false,"RequiresEncryption":0,"LastCloudBackupTZ":"GMT+2","LastCloudBackupDate":657055593},"FusingStatus":3,"HostAttached":true,"ProductionSOC":true,"TrustedHostAttached":true,"DeviceClass":"iPhone","ChipID":32784,"SIMTrayStatus":"kCTSIMSupportSIMTrayInsertedNoSIM","HasSiDP":true,"BasebandChipID":96,"UniqueDeviceID":"1aad521b3f780ba7705b15ccc861e60a2c266cc5","BasebandCertId":1421084145,"FirmwareVersion":"iBoot-5540.140.12","TimeZoneOffsetFromUTC":7200,"ModelNumber":"MN4V2","MobileSubscriberNetworkCode":"","MobileSubscriberCountryCode":"","SBLockdownEverRegisteredKey":true,"ProductType":"iPhone9,4","ActivationState":"Activated","NonVolatileRAM":{"boot-args":""},"ProtocolVersion":"2","DeviceColor":"1","SerialNumber":"F2MSRRGZHFYD","BasebandActivationTicketVersion":"V2","SupportedDeviceFamilies":[1],"kCTPostponementStatus":"kCTPostponementStatusActivated","CertID":1421084145,"UniqueChipID":8573862962310438,"TimeIntervalSince1970":1635419879.058383,"ProductName":"iPhone OS","BuildVersion":"17G80"},"model":"iPhone 7 Plus","os_version":"iOS 13.6.1","udid":"1aad521b3f780ba7705b15ccc861e60a2c266cc5","architecture":"arm64","type":"device","name":"iPhone von Hanno ","state":"Booted"},{"model":"iPhone SE (2nd generation)","os_version":"iOS 14.5","udid":"DB4E943D-DFD1-4FC6-97D1-1FEF092A4C57","architecture":"x86_64","type":"simulator","name":"iPhone SE (2nd generation)","state":"Shutdown"},{"model":"iPad Air (4th generation)","os_version":"iOS 14.5","udid":"B40FF3AE-A702-446D-85CE-9187FCAFDCA9","architecture":"x86_64","type":"simulator","name":"iPad Air (4th generation)","state":"Shutdown"},{"model":"iPad Pro (9.7-inch)","os_version":"iOS 14.5","udid":"59EFA6BD-EC02-4A7C-B936-C39E5AA9841E","architecture":"x86_64","type":"simulator","name":"iPad Pro (9.7-inch)","state":"Shutdown"},{"model":"iPad Pro (12.9-inch) (5th generation)","os_version":"iOS 14.5","udid":"6E67E0D4-1C84-454E-9535-3E3168054488","architecture":"x86_64","type":"simulator","name":"iPad Pro (12.9-inch) (5th generation)","state":"Shutdown"},{"model":"Apple Watch Series 6 - 44mm","os_version":"watchOS 7.4","udid":"DDC79E51-5F80-428E-B8A7-F7DC297192FD","architecture":"i386","type":"simulator","name":"Apple Watch Series 6 - 44mm","state":"Shutdown"},{"model":"iPhone 11","os_version":"iOS 14.5","udid":"C80D9203-6EDC-4290-85E5-161162C410A1","architecture":"x86_64","type":"simulator","name":"iPhone 11","state":"Shutdown"},{"model":"iPhone 12 Pro Max","os_version":"iOS 14.5","udid":"41B7024B-EAB0-48CF-BA79-351D968E3AC0","architecture":"x86_64","type":"simulator","name":"iPhone 12 Pro Max","state":"Shutdown"},{"model":"iPhone 8","os_version":"iOS 14.5","udid":"E1679C14-D708-4A64-B900-91431E0BCFEE","architecture":"x86_64","type":"simulator","name":"iPhone 8","state":"Shutdown"},{"model":"iPhone 12 Pro","os_version":"iOS 14.5","udid":"CBA42DFE-C2AF-4D04-B9D1-16D6FB263CD9","architecture":"x86_64","type":"simulator","name":"iPhone 12 Pro","state":"Shutdown"},{"model":"iPad Pro (11-inch) (3rd generation)","os_version":"iOS 14.5","udid":"20B9B75C-7E8F-4941-85A3-B5F6FA6C4734","architecture":"x86_64","type":"simulator","name":"iPad Pro (11-inch) (3rd generation)","state":"Shutdown"},{"model":"Apple Watch Series 5 - 44mm","os_version":"watchOS 7.4","udid":"78551BF8-33EC-4F40-9EFC-3D8C7A8A098C","architecture":"i386","type":"simulator","name":"Apple Watch Series 5 - 44mm","state":"Shutdown"},{"model":"Apple Watch Series 5 - 40mm","os_version":"watchOS 7.4","udid":"D5BB6334-E066-4899-89AC-0E4C2BF28119","architecture":"i386","type":"simulator","name":"Apple Watch Series 5 - 40mm","state":"Shutdown"},{"model":"iPhone 12","os_version":"iOS 14.5","udid":"F08583CE-40AB-4E15-8926-9A7D883DC4B0","architecture":"x86_64","type":"simulator","name":"iPhone 12","state":"Booted"}] from /tmp/idb/targets
2021-10-28 14:03:09,700 [INFO] - pull - will attempt to spawn a companion for 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:09,706 [DEBUG] - root - started companion at process id 63940
2021-10-28 14:03:25,481 [DEBUG] - root - Read line from companion: b'{"grpc_port":54492}\n'
2021-10-28 14:03:25,481 [DEBUG] - root - Got update from companion: {'grpc_port': 54492}
2021-10-28 14:03:25,482 [INFO] - pull - saved companion pid 63940
2021-10-28 14:03:25,482 [INFO] - pull - spawned a companion for 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:25,483 [INFO] - pull - Replacing CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=52719), metadata={}) with CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=54492), metadata={})
2021-10-28 14:03:25,483 [INFO] - pull - Companion info changed from [CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=52719), metadata={}), CompanionInfo(udid='F08583CE-40AB-4E15-8926-9A7D883DC4B0', is_local=True, address=TCPAddress(host='localhost', port=54068), metadata={})] to [CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=54492), metadata={}), CompanionInfo(udid='F08583CE-40AB-4E15-8926-9A7D883DC4B0', is_local=True, address=TCPAddress(host='localhost', port=54068), metadata={})], writing to file
2021-10-28 14:03:25,483 [DEBUG] - pull - Got newly launched CompanionInfo(udid='1aad521b3f780ba7705b15ccc861e60a2c266cc5', is_local=True, address=TCPAddress(host='localhost', port=54492), metadata={}) for udid 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b':method', b'POST') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 3 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b':scheme', b'http') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b':path', b'/idb.CompanionService/connect') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 4 with 6 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 21 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b':authority', b'localhost:54492') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 1 with 6 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 11 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b'te', b'trailers') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 2 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 6 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b'content-type', b'application/grpc') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 31 with 6 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 11 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Adding (b'user-agent', b'grpc-python-grpclib/0.4.2 (darwin; cpython/3.8.12)') to the header table, sensitive:False, huffman:True
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 58 with 6 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoding 38 with 7 bits
2021-10-28 14:03:25,487 [DEBUG] - hpack.hpack - Encoded header block to b'\x83\x86D\x95`\xd2F\xbd\xe3\xd3X\xea1\xea\xdc[;\x98\x85`\x87\xaa\xa2\x91?A\x8b\xa0\xe4\x1d\x13\x9d\t\xb8\xdbM>/@\x82I\x7f\x86M\x835\x05\xb1\x1f_\x8b\x1du\xd0b\r&=LMedz\xa6\x9a\xca\xc8\xb5~\x939\xeaZk+%\x06\x8d\x80.\xd2\xe2S\xfa\x90vx5_j\x12\xbfI\x9c\xf50\xca\xef.\x11\x7f\x7f'
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoding b'\x88@\x0ccontent-type\x10application/grpc@\x14grpc-accept-encoding\x15identity,deflate,gzip@\x0faccept-encoding\ridentity,gzip'
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded 8, consumed 1 bytes
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded (b':status', b'200'), consumed 1
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded 12, consumed 1 bytes
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded 16, consumed 1 bytes
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095580>, <memory at 0x1080954c0>), total consumed 31 bytes, indexed True
2021-10-28 14:03:25,488 [DEBUG] - hpack.hpack - Decoded 20, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 21, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095700>, <memory at 0x108095640>), total consumed 44 bytes, indexed True
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 15, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 13, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095880>, <memory at 0x1080957c0>), total consumed 31 bytes, indexed True
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoding b'@\x0bgrpc-status\x010'
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 11, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded 1, consumed 1 bytes
2021-10-28 14:03:25,489 [DEBUG] - hpack.hpack - Decoded (<memory at 0x108095a00>, <memory at 0x108095940>), total consumed 15 bytes, indexed True
2021-10-28 14:03:25,489 [DEBUG] - pull - Constructed client for companion 1aad521b3f780ba7705b15ccc861e60a2c266cc5
2021-10-28 14:03:25,490 [DEBUG] - idb - FSPullCommand failed
2021-10-28 14:03:25,490 [ERROR] - root - Exception thrown in main
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/idb/grpc/client.py", line 188, in func_wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/idb/grpc/client.py", line 663, in pull
await stream.recv_message()
File "/usr/local/lib/python3.8/site-packages/grpclib/client.py", line 425, in recv_message
await self.recv_initial_metadata()
File "/usr/local/lib/python3.8/site-packages/grpclib/client.py", line 393, in recv_initial_metadata
self._raise_for_grpc_status(status, message, details)
File "/usr/local/lib/python3.8/site-packages/grpclib/client.py", line 345, in _raise_for_grpc_status
raise GRPCError(status, message, details)
grpclib.exceptions.GRPCError: (<Status.INTERNAL: 13>, 'Failed to write data to file at path /var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle', None)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/idb/grpc/management.py", line 115, in from_udid
yield client
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 67, in _get_client
yield client
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 129, in _run_impl
await self.run_with_client(args=args, client=client)
File "/usr/local/lib/python3.8/site-packages/idb/cli/commands/file.py", line 138, in run_with_client
return await self.run_with_container(
File "/usr/local/lib/python3.8/site-packages/idb/cli/commands/file.py", line 333, in run_with_container
await client.pull(
File "/usr/local/lib/python3.8/site-packages/idb/common/logging.py", line 113, in _async_wrapper
raise ex
File "/usr/local/lib/python3.8/site-packages/idb/common/logging.py", line 88, in _async_wrapper
value = await function(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/idb/grpc/client.py", line 190, in func_wrapper
raise IdbException(e.message) from e # noqa B306
idb.common.types.IdbException: Failed to write data to file at path /var/folders/y_/0zpgmz_n6_58t15fxng1kjcc0000gn/T/tmp-63878-J4Ol6IPicmle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/idb/cli/main.py", line 310, in gen_main
await root_command.run(args)
File "/usr/local/lib/python3.8/site-packages/idb/common/command.py", line 90, in run
return await self.resolve_command_from_args(args).run(args)
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 107, in run
await self._run_impl(args)
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 129, in _run_impl
await self.run_with_client(args=args, client=client)
File "/usr/local/Cellar/python@3.8/3.8.12_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 189, in __aexit__
await self.gen.athrow(typ, value, traceback)
File "/usr/local/lib/python3.8/site-packages/idb/cli/__init__.py", line 67, in _get_client
yield client
File "/usr/local/Cellar/python@3.8/3.8.12_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 190, in __aexit__
raise RuntimeError("generator didn't stop after athrow()")
RuntimeError: generator didn't stop after athrow()
2021-10-28 14:03:25,494 [ERROR] - asyncio - Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<<async_generator_athrow without __name__>()>>
at handleMissingPermissions (file:///Applications/Flipper.app/Contents/Resources/app.asar/bundle.js:5983:4068)
at file:///Applications/Flipper.app/Contents/Resources/app.asar/bundle.js:5983:3359
To Reproduce
Unfortunately, I can’t tell how to reproduce that. I just installed everything as you would expect, did nothing else. It just ‘didn’t work out of the box’.
Environment
System: macOS Big Sur 11.6 iPhone: iOS 13.6.1 idb: newest, 1.1.5 flipper: newest, 0.117
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Cannot test on physical device ios… | Apple Developer Forums
I get the error below from xcode. Could not launch "App" Domain: IDEDebugSessionErrorDomain Code: 3 Failure Reason: failed to get the task for...
Read more >Xcode : failed to get the task for process - Stack Overflow
This error tends to appear when you pick an ad-hoc provisioning profile. Make sure that your code signing is for development.
Read more >iOS Device - Proxyman Documentation
How to install Proxyman Certificate on iOS Devices (iPhone, iPad) ... Get your iOS Device -> Open Setting app -> Wifi -> Select...
Read more >Cannot load Apple certificates - Visual Studio Feedback
Cannot download signing certificates from Apple Connect. Tested with 2 different developer accounts with both VS 2022 and VS 2019. I get the...
Read more >Troubleshoot device enrollment in Intune - Microsoft Learn
Remove the Intune Company Portal app from the device. · If the user fails to sign in, they should try another network. ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Leaving this here in case it helps someone:
I had to change my idb binary location in the settings.
In terminal run
which idb(for me it was/opt/homebrew/bin/idb)Then paste that in
Flipper > Settings > IDB binary locationThe Flipper Setup Doctor pointed me in the right direction
idb is not the problem, I installed it and setup-doctor says that idb is valid, and it still happens.