Unable to install idb-companion via homebrew - [BUILD FAILED]
TowhidKashem opened this issue · comments
TowhidKashem commented
Description
I tried to install idb-companion
via Homebrew as instructed here:
https://fbidb.io/docs/installation
And it failed, then I tried to do it in the various different ways suggested in these and similar threads:
None of which worked for me.
Reproduction
- On a mac OS Big Sur (v 11.5.1) using Intel i7 processor run the following commands:
brew tap facebook/fb
brew install idb-companion
- After the long hanging
pod install
command you will eventually pass to the next./idb_build.sh idb_companion build /usr/local/Cellar/idb-companion/1.1.7
which will eventually fail and result in the following output:
Last 15 lines from /Users/tkashem/Library/Logs/Homebrew/idb-companion/02.idb_build.sh:
ProcessInfoPlistFile /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Products/Debug/XCTestBootstrap.framework/Versions/A/Resources/Info.plist /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/XCTestBootstrap/XCTestBootstrap-Info.plist (in target 'XCTestBootstrap' from project 'FBSimulatorControl')
cd /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7
builtin-infoPlistUtility /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/XCTestBootstrap/XCTestBootstrap-Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -platform macosx -o /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Products/Debug/XCTestBootstrap.framework/Versions/A/Resources/Info.plist
Ld /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Products/Debug/XCTestBootstrap.framework/Versions/A/XCTestBootstrap normal (in target 'XCTestBootstrap' from project 'FBSimulatorControl')
cd /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-macos10.14 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -L/tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Products/Debug -L/tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/Shims/Binaries -F/tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Products/Debug -filelist /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/XCTestBootstrap.build/Objects-normal/x86_64/XCTestBootstrap.LinkFileList -install_name @rpath/XCTestBootstrap.framework/Versions/A/XCTestBootstrap -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -object_path_lto -Xlinker /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/XCTestBootstrap.build/Objects-normal/x86_64/XCTestBootstrap_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -framework Foundation -framework FBControlCore -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/XCTestBootstrap.build/Objects-normal/x86_64/XCTestBootstrap_dependency_info.dat -o /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Products/Debug/XCTestBootstrap.framework/Versions/A/XCTestBootstrap
** BUILD FAILED **
The following build commands failed:
CompileC /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/Objects-normal/x86_64/idb.pb.o /tmp/idb-companion-20220806-43163-1crhe8b/idb-1.1.7/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'idbGRPC' from project 'idb_companion')
(1 failure)
Screenshot of the same error:
Additional Information
idb
revision: v1.1.7 (latest)
Jonas Schultheiss commented
Same here. I thought it was a problem with paths in nix. It turns out that the path exist, but the file "libShimulator.dylib" is missing