idb icon indicating copy to clipboard operation
idb copied to clipboard

Error installing idb-companion in macbook m1

Open antonio5mins opened this issue 5 years ago • 4 comments

Description

Error when installing idb-companion

Reproduction

arch -arm64 brew install idb-companion

Result

➜  Downloads arch -arm64 brew install idb-companion
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 1 formula.
Updating Homebrew...

==> Downloading https://github.com/facebook/idb/archive/v1.1.5.tar.gz
Already downloaded: /Users/antoniomelo/Library/Caches/Homebrew/downloads/626c4ce498f08179c88e9995f5f8592fe9ea0a67ccada10626a04b856e10d152--idb-1.1.5.tar.gz
==> Installing idb-companion from facebook/fb
==> pod install
==> ./idb_build.sh idb_companion build /opt/homebrew/Cellar/idb-companion/1.1.5
Last 15 lines from /Users/antoniomelo/Library/Logs/Homebrew/idb-companion/02.idb_build.sh:
Libtool /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug/libPods-idb_companion.a normal (in target 'Pods-idb_companion' from project 'Pods')
    cd /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/Pods
    export MACOSX_DEPLOYMENT_TARGET\=10.14
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -L/tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug -L/tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug/BoringSSL-GRPC -L/tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug/Protobuf-C++ -L/tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug/abseil -L/tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug/gRPC-C++ -L/tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug/gRPC-Core -filelist /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Intermediates.noindex/Pods.build/Debug/Pods-idb_companion.build/Objects-normal/arm64/Pods-idb_companion.LinkFileList -dependency_info /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/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-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug/libPods-idb_companion.a

Ld /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug/FBDeviceControl.framework/Versions/A/FBDeviceControl normal (in target 'FBDeviceControl' from project 'FBSimulatorControl')
    cd /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-macos10.14 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -L/tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug -F/tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug -F/Applications/Xcode.app/Contents/Developer/../Frameworks -F/Applications/Xcode.app/Contents/Developer/../PlugIns -F/Applications/Xcode.app/Contents/Developer/../OtherFrameworks -F/Applications/Xcode.app/Contents/Developer/../SharedFrameworks -F/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/PrivateFrameworks -F/Library/Developer/PrivateFrameworks -filelist /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/FBDeviceControl.build/Objects-normal/arm64/FBDeviceControl.LinkFileList -install_name @rpath/FBDeviceControl.framework/Versions/A/FBDeviceControl -Xlinker -rpath -Xlinker @executable_path -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -object_path_lto -Xlinker /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/FBDeviceControl.build/Objects-normal/arm64/FBDeviceControl_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -framework AVFoundation -framework Cocoa -framework CoreMediaIO -framework Foundation -framework FBControlCore -framework XCTestBootstrap -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/FBDeviceControl.build/Objects-normal/arm64/FBDeviceControl_dependency_info.dat -o /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Products/Debug/FBDeviceControl.framework/Versions/A/FBDeviceControl

** BUILD FAILED **


The following build commands failed:
	RuleScriptExecution /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.h /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.h /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.cc /tmp/idb-companion-20210927-56703-1ykfa1b/idb-1.1.5/proto/idb.proto normal arm64
(1 failure)

Additional Information

  • I'm using a macbook pro m1
  • Xcode vesion 12.5.1

Solution

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/usr/local/bin/brew tap Facebook/fb
/usr/local/bin/brew install idb-companion

antonio5mins avatar Sep 28 '21 09:09 antonio5mins

Screenshot 2021-09-28 at 13 27 37 Now this error appears

antonio5mins avatar Sep 28 '21 12:09 antonio5mins

I'm having the same issue, but the Solution doesn't work for me :(

Result

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password).
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/sbin/chown -R gabrielmoncha:admin /opt/homebrew
==> Downloading and installing Homebrew...
HEAD is now at 92749f9c5 Merge pull request #12191 from Bo98/curl-git-path

Error: Fetching /opt/homebrew/Library/Taps/facebook/homebrew-fb failed!
Updated 1 tap (homebrew/core).
Failed during: /opt/homebrew/bin/brew update --force --quiet

gabimoncha avatar Oct 06 '21 14:10 gabimoncha

related to https://github.com/facebook/idb/issues/649 solution in that issue as well

Albert-Gao avatar Oct 06 '21 21:10 Albert-Gao

Build on M1 has been fixed on idb-companion v1.1.7. A arm64_monterey bottle was also published.

jbardini avatar Mar 03 '22 13:03 jbardini