IDB: Current setting isn't a valid IDB installation
Description
Apologies, this may not be a bug per se but I could not find any forum or other place where I can find help. This is the first time for IDB along with Flipper. After having followed the instructions, I was able to install Flipper on my Macbook air M1 (2020) Monterey. When I open "Setup Doctor", everything is green except a warning with IDB:
IDB is required to use Flipper with IOS devices. (...)
Current settings:
/Library/Frameworks/Python.framework/Versions/3.10/bin isn't a valid IDB installation.
Reproduction
Install Flipper according to instructions Install facebook IDB companion and client
Hey @seyaobey-dev , would you mind reinstalling Flipper and idb as per the instructions you shared and pasting all the output here? It would help us to verify if anything fishy happened during the installation.
@fgasperij I have uninstalled flipper and reinstalled it. Then I ran brew tap facebook/fb which completed successfully.
But brew install idb-companion has failed. Here is the command full output:
seyaobey@Esendas-MacBook-Air ~ % brew install idb-companion
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1m
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/blobs/sha256:b3a02096abab03b1571f37d8d1f
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:b3a02096abab03b1
######################################################################## 100.0%
==> Downloading https://github.com/facebook/idb/archive/v1.1.6.tar.gz
==> Downloading from https://codeload.github.com/facebook/idb/tar.gz/v1.1.6
-=O=- # # # #
==> Installing idb-companion from facebook/fb
==> Installing dependencies for facebook/fb/idb-companion: [email protected]
==> Installing facebook/fb/idb-companion dependency: [email protected]
==> Pouring [email protected]_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/[email protected]/1.1.1m: 8,081 files, 18MB
==> Installing facebook/fb/idb-companion
==> pod install
==> ./idb_build.sh idb_companion build /opt/homebrew/Cellar/idb-companion/1.1.6
Last 15 lines from /Users/seyaobey/Library/Logs/Homebrew/idb-companion/02.idb_build.sh:
WriteAuxiliaryFile /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Intermediates.noindex/Pods.build/Debug/Pods-idb_companion.build/Objects-normal/arm64/Pods-idb_companion.LinkFileList (in target 'Pods-idb_companion' from project 'Pods')
cd /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/Pods
write-file /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Intermediates.noindex/Pods.build/Debug/Pods-idb_companion.build/Objects-normal/arm64/Pods-idb_companion.LinkFileList
Libtool /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Products/Debug/libPods-idb_companion.a normal (in target 'Pods-idb_companion' from project 'Pods')
cd /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/Pods
export MACOSX_DEPLOYMENT_TARGET\=10.14
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -D -syslibroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -L/tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Products/Debug -L/tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Products/Debug/BoringSSL-GRPC -L/tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Products/Debug/Protobuf-C++ -L/tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Products/Debug/abseil -L/tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Products/Debug/gRPC-C++ -L/tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Products/Debug/gRPC-Core -filelist /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Intermediates.noindex/Pods.build/Debug/Pods-idb_companion.build/Objects-normal/arm64/Pods-idb_companion.LinkFileList -dependency_info /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Intermediates.noindex/Pods.build/Debug/Pods-idb_companion.build/Objects-normal/arm64/Pods-idb_companion_libtool_dependency_info.dat -o /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Products/Debug/libPods-idb_companion.a
** BUILD FAILED **
The following build commands failed:
RuleScriptExecution /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.h /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.h /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.cc /tmp/idb-companion-20220124-41179-x5or9w/idb-1.1.6/proto/idb.proto normal arm64 (in target 'idbGRPC' from project 'idb_companion')
(1 failure)
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/facebook/homebrew-fb/issues
These open issues may also help:
./idb_build.sh idb_companion build /** BUILD FAILED ** https://github.com/facebook/homebrew-fb/issues/73
brew install idb-companion failed on x86_64 https://github.com/facebook/homebrew-fb/issues/75
seyaobey@Esendas-MacBook-Air ~ %
Please try again with v1.1.7 as the project dependencies have been fixed.
I'm closing this, but feel free to reopen if the issue persists.
On flipper 0.139.0 and with idb v1.1.7 the issue persists. My Flipper settings for IDB location is '/opt/homebrew/Cellar/idb-companion/1.1.7/bin/idb_companion'
Any luck fixing this @ste7en ?
Any luck fixing this @ste7en ?
Yes, @azedo . It was long ago therefore I don't remember it very good, but looking at my shell history that's what worked for me:
brew tap facebook/fb
brew install --HEAD idb-companion
git clone [email protected]:facebook/idb.git
cd idb
pod install
./idb_build.sh idb_companion build /opt/homebrew
On Flipper, use this path for idb: /opt/homebrew/bin/idb
Notice that I'm using a M1 MacBook Pro, therefore the homebrew folder is different from the one installed on Intel machines.
Thanks so much @ste7en it's working for me now! 🎉