Closed hannojg closed 2 years ago
Hi @hannojg! Thanks for reporting the issue. Seems to be a duplicate of https://github.com/facebook/flipper/issues/2113. Could you try the solution from that issue and report if it fixes the problem for you? See https://github.com/facebook/flipper/issues/2113#issuecomment-882839414
Hey, everything is up to date, so no, it doesn't fix the issue, unfortunately.
(and yes it uses the correct python version that I also used with pip etc)
Requirement already satisfied: fb-idb in /usr/local/lib/python3.8/site-packages (1.1.5)
Requirement already satisfied: aiofiles in /usr/local/lib/python3.8/site-packages (from fb-idb) (0.7.0)
Requirement already satisfied: treelib in /usr/local/lib/python3.8/site-packages (from fb-idb) (1.6.1)
Requirement already satisfied: protobuf in /usr/local/lib/python3.8/site-packages (from fb-idb) (3.19.0)
Requirement already satisfied: grpclib>=0.4.0 in /usr/local/lib/python3.8/site-packages (from fb-idb) (0.4.2)
Requirement already satisfied: h2<5,>=3.1.0 in /usr/local/lib/python3.8/site-packages (from grpclib>=0.4.0->fb-idb) (4.1.0)
Requirement already satisfied: multidict in /usr/local/lib/python3.8/site-packages (from grpclib>=0.4.0->fb-idb) (5.2.0)
Requirement already satisfied: hpack<5,>=4.0 in /usr/local/lib/python3.8/site-packages (from h2<5,>=3.1.0->grpclib>=0.4.0->fb-idb) (4.0.0)
Requirement already satisfied: hyperframe<7,>=6.0 in /usr/local/lib/python3.8/site-packages (from h2<5,>=3.1.0->grpclib>=0.4.0->fb-idb) (6.0.1)
Requirement already satisfied: future in /usr/local/lib/python3.8/site-packages (from treelib->fb-idb) (0.18.2)
For what it's worth I'm seeing this issue as well and this seems to be related: https://github.com/facebook/flipper/issues/2871
Same issue here, the fix detailed in #2871 works as a workaround.
Fixed in https://github.com/facebook/flipper/commit/9975aa9319e69317bec986f290572ca4e1ca2657 Should be included into the next release
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 location
The Flipper Setup Doctor pointed me in the right direction
Is this released? I have this problem in the latest version 0.144.0
Is this released? I have this problem in the latest version 0.144.0
Check your idb file if it exists; I'm running it this issue right now—been using swift UI before. Go into flipper settings.
If not install it: https://github.com/facebook/idb
Is this released? I have this problem in the latest version 0.144.0
Here it is the same too, but there is no clear answer yet. We already use idb. If we cannot use it already, we cannot open the flipper.
idb is not the problem, I installed it and setup-doctor says that idb is valid, and it still happens.
I started seeing this error after upgrading Xcode. For me, I fixed it with:
brew update
brew upgrade idb-companion
Restarting is important. I wasted a bunch of time messing with stuff before restarting, but the only meaningful thing I did was upgrade idb-companion
.
You may also need to upgrade python's fb-idb
, but mine was already up to date:
pip3.6 install fb-idb --upgrade --user
.
I'm having a similar error: Failed to start client connection: [conn] Failed to exchange certificate with AppName on iPhone: Error: iOSCertificateProvider does not support medium 1
I can't find any answers and have followed the steps in this and #2113.
I'm using:
My eas.json:
{
"cli": {
"version": ">= 3.7.2"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"resourceClass": "m1-medium"
}
},
"preview": {
"distribution": "internal",
"ios": {
"resourceClass": "m-medium"
}
},
"production": {
"ios": {
"resourceClass": "m-medium"
}
}
},
"submit": {
"production": {}
}
}
Any ideas?
According with Podfile (React Native 0.72.4), you need to exclude react-native-flipper
if NO_FLIPPER=1
is set, using a react-native.config.js
file:
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
#
so I updated my react-native.config.js
like this:
// react-native.config.js at project root
module.exports = {
project: {
ios: {},
android: {},
},
assets: ['./src/resources/fonts/'],
dependencies: {
// when NO_FLIPPER=1
...(process.env.NO_FLIPPER
? {'react-native-flipper': {platforms: {ios: null}}}
: {}),
},
};
🐛 Bug Report
I can't connect to my physical iOS device as some idb operations fail. The operation is this one:
The error I get is this one (see below for full stack trace):
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: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 (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 (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