Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing idb-companion in macbook m1 #738

Closed
antonio5mins opened this issue Sep 28, 2021 · 4 comments
Closed

Error installing idb-companion in macbook m1 #738

antonio5mins opened this issue Sep 28, 2021 · 4 comments

Comments

@antonio5mins
Copy link

antonio5mins commented Sep 28, 2021

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
Copy link
Author

Screenshot 2021-09-28 at 13 27 37

Now this error appears

@gabimoncha
Copy link

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

@Albert-Gao
Copy link

related to #649
solution in that issue as well

@jbardini
Copy link
Contributor

jbardini commented Mar 3, 2022

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

@jbardini jbardini closed this as completed Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants