Open habiiev opened 3 years ago
I'm experiencing the same problem & no solution yet
+1
+1
Same thing using Xcode 13.1
TLDR: Version 1.1.3 of idb-companion
seems to be the issue, upgrading to 1.1.5 fixes it. Here's what worked for me:
brew tap --repair
brew update
brew upgrade
I finally figured out what was causing this error for me: brew
was invisibly failing to upgrade my version of idb-companion
because facebook changed their main branch name from master
to main
.
I realized when I called brew install idb-companion
I was getting version 1.1.3, however, the current version is 1.1.5. I tried several times to reinstall, to brew tap facebook/fb
, but nothing worked. Finally, I tried brew update
and saw this:
fatal: couldn't find remote ref refs/heads/master
Error: Fetching /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb failed!
Error: Some taps failed to update!
The following taps can not read their remote branches:
facebook/fb
This is happening because the remote branch was renamed or deleted.
Reset taps to point to the correct remote branches by running `brew tap --repair`
So I ran brew tap --repair
and saw:
==> facebook/fb: changed default branch name from master to main!
Once I did that I called brew update
and saw:
Updated 1 tap (facebook/fb).
==> Updated Formulae
facebook/fb/idb-companion ✔
You have 2 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
And then finally called brew upgrade
:
==> Upgrading 2 outdated packages:
facebook/fb/idb-companion 1.1.3 -> 1.1.5
After that, I was able to call idb list-targets
and everything worked (including Flipper, which was what led me here in the first place).
@computerjazz Thank you! This was indeed the fix. Looked around for a long while before stumbling upon your remarks. Thanks for writing this down! 🥵
@computerjazz same as @bitcrumb here, thanks a lot!
On the new IDB cmd: "/usr/local/bin/idb_companion list-targets --json" is not a command...so it breaks flipper
Hmm, I'm getting "No available targets" on my M1, running monterrey and xcode 13.. any idea what might be happening? Works fine on my mac mini, on Big Sur...
Apart from what @computerjazz said, I had to also run the following command:
pip3 install --force-reinstall fb-idb
In my case the error message that I started getting after @computerjazz fix was:
➜ frames git:(feature/sign-up) ✗ idb list-targets
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/idb", line 5, in <module>
from idb.cli.main import main
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/idb/cli/__init__.py", line 29, in <module>
from idb.grpc.client import Client as GrpcClient
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/idb/grpc/client.py", line 83, in <module>
from idb.grpc.crash import (
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/idb/grpc/crash.py", line 10, in <module>
from idb.grpc.idb_pb2 import (
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/idb/grpc/idb_pb2.py", line 20, in <module>
_SETTING = DESCRIPTOR.enum_types_by_name['Setting']
AttributeError: 'NoneType' object has no attribute 'enum_types_by_name'
Don't know if anyone else was running into this still but I was.
I ran idb list-targets --log DEBUG
and found this error AMDeviceNotificationSubscribe failed with -402653085
. After searching around I found the solution on microsoft's website which was to just run sudo killall -QUIT usbmuxd
.
This worked for me: sudo ln -s /opt/homebrew/bin/idb_companion /usr/local/bin
Description
Updated to new macOS (11.6) and new Xcode (13.0) and started getting this error when trying to execute
list-targets
orlist-apps
commands:Reproduction
Install idb-companion using brew
Install idb cli using pip
Run any of these commands:
Solution
...
Additional Information