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

[Setup] Couldn't iOS make bootstrap command always failed when Rosetta 2 is enabled #616

Closed
fumiyasac opened this issue Aug 18, 2024 · 2 comments

Comments

@fumiyasac
Copy link
Contributor

fumiyasac commented Aug 18, 2024

Overview

$ make bootstrap fails in Rosetta 2 environment.
I would like to know the solution to this problem.

スクリーンショット 2024-08-18 19 54 29

Setup Document in iOS

https://github.com/DroidKaigi/conference-app-2024/tree/main/app-ios

My Opinion

In an ideal situation, we would like it to succeed even when Rosetta 2 is enabled.

@takahirom takahirom changed the title [Setup] Couldn't iOS make bootstrap command always failed. [Setup] Couldn't iOS make bootstrap command always failed when Rosetta 2 is enabled Aug 18, 2024
@fumiyasac
Copy link
Contributor Author

The problem was resolved by reinstalling Homebrew.

Installing xcbeautify
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
    arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.
Installing xcbeautify has failed!
Homebrew Bundle failed! 1 Brewfile dependency failed to install.
Check for differences in your Brewfile.lock.json!
make[1]: *** [setup] Error 1
make: *** [bootstrap] Error 2

My operation step.

1. Check current location

% brew --prefix
/opt/homebrew

※ It seems to be correct, but error occurs....

2. Remove /opt/homebrew

% sudo rm -r /opt/homebrew

3. Reinstall Homebrew

% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

※ Please check Homebrew localtion/usr/local/.

4. Check new location

% brew --prefix
/usr/local

5. Execute $ make bootstrap

% make bootstrap
make setup && \
	make build-kmp-module && \
	make open
brew bundle --no-lock
==> Tapping homebrew/bundle
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle'...
remote: Enumerating objects: 8240, done.
remote: Counting objects: 100% (2325/2325), done.
remote: Compressing objects: 100% (509/509), done.
remote: Total 8240 (delta 1927), reused 2094 (delta 1805), pack-reused 5915 (from 1)
Receiving objects: 100% (8240/8240), 2.01 MiB | 1.92 MiB/s, done.
Resolving deltas: 100% (4802/4802), done.
Tapped 1 command (108 files, 2.5MB).
Installing xcbeautify
Homebrew Bundle complete! 1 Brewfile dependency now installed.

....

BUILD SUCCESSFUL in 5m 55s
74 actionable tasks: 24 executed, 50 up-to-date
open App/App.xcodeproj

@fumiyasac
Copy link
Contributor Author

@takahirom Is it okay to close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants