M1 Mac 環境構築メモ
まずはHomebrewを使えるようにする
みんなの M1 Mac における Homebrew のベストプラクティス は間違っている
こちらの記事のやり方が良さそう。
# ARM用Homebrewをインストールするディレクトリを、Rootのoptに作成
sudo mkdir /opt/homebrew
sudo chown $USER /opt/homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /opt/homebrew
( chown
初めて使った)
bew doctor
/opt/homebrew/bin/brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Git could not be found in your PATH.
Homebrew uses Git for several internal functions, and some formulae use Git
checkouts instead of stable tarballs. You may want to install Git:
brew install git
Warning: You are running macOS on a arm64 CPU architecture.
We do not provide support for this (yet).
Reinstall Homebrew under Rosetta 2 until we support it.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.
Warning: /usr/bin occurs before /opt/homebrew/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. Consider setting your PATH so that
/opt/homebrew/bin occurs before /usr/bin. Here is a one-liner:
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
The following tools exist at both paths:
git-receive-pack
git-upload-archive
git-shell
git-upload-pack
git
Warning: Homebrew's bin was not found in your PATH.
Consider setting the PATH for example like so:
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
PATHを通す
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
Git が見つからないと言われるので再インストール
Warning: Git could not be found in your PATH.
Homebrew uses Git for several internal functions, and some formulae use Git
checkouts instead of stable tarballs. You may want to install Git:
brew install git
Warning: git 2.29.2 is already installed and up-to-date
To reinstall 2.29.2, run `brew reinstall git`
すでにインストールしているから reinstall
しろとのこと
しかし、 brew reinstall git
では解決できず🤔
brew unlink git
brew install git
上手くいったっぽい👌
とりあえず、Homebrew使ってみる
brew --version
Command Line Tools をインストールしろとのダイアログが表示されたので、素直に「インストールを選択」
(5分くらいかかった)
# 使えた!
Homebrew >=2.5.0 (shallow or no git repository)
Homebrew/homebrew-core (no git repository)
Cask で Chrome をインストールしてみる
Apple Silicon 最適化済み👍
brew install --cask google-chrome
==> Downloading https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg
######################################################################## 100.0%
Warning: No checksum defined for cask 'google-chrome', skipping verification.
==> Installing Cask google-chrome
==> Moving App 'Google Chrome.app' to '/Applications/Google Chrome.app'.
🍺 google-chrome was successfully installed!
Chrome起動OK👌
バージョンを確認してみる → バージョン: 87.0.4280.88(Official Build) (arm64)
Visual Studio Code
Insidersバージョンで、Apple Silicon 最適化済み👍
公式ページのインサイダーバージョンをインストールする。
右下の「ARM64」をクリックしてダウンロード&展開してApplicationディレクトリへ入れる。
「Code-Insiders」が起動できた👌
Alfred
Apple Silicon 最適化済み👍
macOS内臓のSpotlightより多機能なランチャー。
brew install --cask alfred
==> Downloading https://cachefly.alfredapp.com/Alfred_4.3_1205.dmg
######################################################################## 100.0%
==> Installing Cask alfred
==> Moving App 'Alfred 4.app' to '/Applications/Alfred 4.app'.
🍺 alfred was successfully installed!
起動OK👌
個人的な好みですが、システム環境設定からSpotlight のショートカットキーを無効にして、Alfredを「⌘ + Space」に設定しています(Spotlightと置き換える)
セキュリティとプライバシー
一般
Apple Watchを使ってアプリケーションとこのMacのロックを解除
ディスプレイ
これは、M1ではなく元からの仕様かもしれないけど…
HDMIとUSB-Cで2つのモニタに出力する(Mac mini)
HDMIとUSB-Cで、提示される解像度が少し違う。
手元のLG 4K ディスプレイで最高解像度が 3840 x 2160 なのは一緒だけど、HDMI接続だと 3008 x 1692 が選択できないのが残念🤔
Spark(メーラー)
12月26日現在、Rosetta 2 only
Homebrewには無い
Apple Silicon 最適化済み👍
Homebrewに無いようだったのでMac App Store からダウンロード
BetterTouchTool
Apple Silicon 最適化済み👍
ショートカットキーやジェスチャー等のカスタム設定が便利。
主に、ディスプレイ上のウィンドウのサイズや位置をショートカットキーで切り替える設定に使っています。
brew install --cask bettertouchtool
==> Downloading https://folivora.ai/releases/btt3.508-1646.zip
######################################################################## 100.0%
==> Installing Cask bettertouchtool
==> Moving App 'BetterTouchTool.app' to '/Applications/BetterTouchTool.app'.
途中多数のエラーが発生したものの、BetterTouchTool自体のインストールは成功したようで、起動できた🤔
全ログ
riscait@Mac-mini-M1 ~ % /opt/homebrew/bin/brew install --cask bettertouchtool
Warning: You are running macOS on a arm64 CPU architecture.
We do not provide support for this (yet).
Reinstall Homebrew under Rosetta 2 until we support it.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.21.arm64_big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/339b62b52ba86dfa73091d37341104b46c01ae354ca425000732df689305442b?response-content-di
Updating Homebrew...
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/pcre2-10.36.arm64_big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/8160558f322198cb735708ca993a683594d6f9dc83112cc26a378be466133edc?response-content-di
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/git-2.29.2.arm64_big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f085ee82a758db44ad9ae7342ef633792e7d4cfbe7c102abf791678fd2093090?response-content-di
######################################################################## 100.0%
==> Installing dependencies for git: gettext and pcre2
==> Installing git dependency: gettext
==> Pouring gettext-0.21.arm64_big_sur.bottle.tar.gz
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/envsubst
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/gettext
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgattrib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgattrib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgattrib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgattrib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcat
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcat
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcat
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcat
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcmp
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcmp
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcmp
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcmp
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcomm
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcomm
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcomm
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgcomm
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgconv
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgconv
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgconv
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgconv
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgen
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgen
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgen
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgen
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgexec
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgexec
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgexec
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgexec
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgfilter
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgfilter
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgfilter
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgfilter
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgfmt
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgfmt
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgfmt
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgfmt
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msggrep
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msggrep
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msggrep
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msggrep
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msginit
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msginit
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msginit
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msginit
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgmerge
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgmerge
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgmerge
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgmerge
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgunfmt
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgunfmt
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgunfmt
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msgunfmt
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msguniq
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msguniq
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msguniq
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/msguniq
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/ngettext
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/recode-sr-latin
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/recode-sr-latin
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/xgettext
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/xgettext
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/xgettext
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/bin/xgettext
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/gettext/cldr-plurals
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/gettext/cldr-plurals
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/gettext/cldr-plurals
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/gettext/cldr-plurals
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/gettext/hostname
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/gettext/hostname
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/gettext/urlget
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/gettext/urlget
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libasprintf.0.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libgettextlib-0.21.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libgettextlib-0.21.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libgettextpo.0.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libgettextpo.0.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libgettextsrc-0.21.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libgettextsrc-0.21.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libgettextsrc-0.21.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libgettextsrc-0.21.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libintl.8.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/gettext/0.21/lib/libtextstyle.0.dylib
🍺 /opt/homebrew/Cellar/gettext/0.21: 1,953 files, 20.8MB
==> Installing git dependency: pcre2
==> Pouring pcre2-10.36.arm64_big_sur.bottle.tar.gz
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/bin/pcre2grep
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/bin/pcre2test
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/bin/pcre2test
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/bin/pcre2test
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/bin/pcre2test
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/lib/libpcre2-16.0.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/lib/libpcre2-32.0.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/lib/libpcre2-8.0.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/lib/libpcre2-posix.2.dylib
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/pcre2/10.36/lib/libpcre2-posix.2.dylib
🍺 /opt/homebrew/Cellar/pcre2/10.36: 230 files, 5MB
==> Installing git
==> Pouring git-2.29.2.arm64_big_sur.bottle.tar.gz
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/bin/git
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/bin/git
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/bin/git-shell
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/bin/git-shell
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-daemon
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-daemon
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-http-backend
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-http-backend
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-http-fetch
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-http-fetch
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-http-push
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-http-push
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-imap-send
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-imap-send
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-remote-http
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-remote-http
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-sh-i18n--envsubst
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/git/2.29.2/libexec/git-core/git-sh-i18n--envsubst
==> Caveats
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.
zsh completions and functions have been installed to:
/opt/homebrew/share/zsh/site-functions
Emacs Lisp files have been installed to:
/opt/homebrew/share/emacs/site-lisp/git
==> Summary
🍺 /opt/homebrew/Cellar/git/2.29.2: 1,480 files, 40.3MB
==> Caveats
==> git
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.
zsh completions and functions have been installed to:
/opt/homebrew/share/zsh/site-functions
Emacs Lisp files have been installed to:
/opt/homebrew/share/emacs/site-lisp/git
/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 7541 Killed: 9 "$GIT_EXECUTABLE" "$@"
/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 7639 Killed: 9 "$GIT_EXECUTABLE" "$@"
/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 7640 Killed: 9 "$GIT_EXECUTABLE" "$@"
/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 7658 Killed: 9 "$GIT_EXECUTABLE" "$@"
/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 7659 Killed: 9 "$GIT_EXECUTABLE" "$@"
/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 7677 Killed: 9 "$GIT_EXECUTABLE" "$@"
/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18: 7678 Killed: 9 "$GIT_EXECUTABLE" "$@"
==> Homebrew has enabled anonymous aggregate formula and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics have been recorded yet (or will be during this `brew` run).
Error: Failure while executing; `git config --replace-all homebrew.analyticsmessage true` was terminated by uncaught signal KILL.
==> Downloading https://folivora.ai/releases/btt3.508-1646.zip
######################################################################## 100.0%
==> Installing Cask bettertouchtool
==> Moving App 'BetterTouchTool.app' to '/Applications/BetterTouchTool.app'.
標準設定 → 一般 で、✅ PCの立ち上げ時にBetterTouchToolを起動する
標準設定 → 一般 で、✅ 同期を有効にする
にチェックを入れたらクラッシュしたが、再度立ち上げたら同期は正常に行われていた。
DeepL
Apple Silicon 最適化済み👍
brew install --cask deepl
==> Installing Cask deepl
==> Moving App 'DeepL.app' to '/Applications/DeepL.app'.
🍺 deepl was successfully installed!
Slack
Apple Silicon 最適化済み👍
Kindle for Mac
M1 未対応のため、Rossetaでの起動
brew install --cask kindle
==> Downloading https://kindleformac.s3.amazonaws.com/59055/KindleForMac-1.30.59055.dmg
######################################################################## 100.0%
==> Installing Cask kindle
==> Moving App 'Kindle.app' to '/Applications/Kindle.app'.
🍺 kindle was successfully installed!
Tower (Git)
Apple Silicon 最適化済み👍
brew install --cask tower
==> Downloading https://fournova-app-updates.s3.amazonaws.com/apps/tower3-mac/258-9c97138e/Tower-6.1-258.zip
######################################################################## 100.0%
==> Installing Cask tower
==> Moving App 'Tower.app' to '/Applications/Tower.app'.
==> Linking Binary 'gittower' to '/opt/homebrew/bin/gittower'.
🍺 tower was successfully installed!
1Password
Beta版にて、Apple Silicon 最適化済み👍
パスワード・ライセンスを始めとした個人情報の保管場所。
2要素認証も保存、使用できてとても便利。
FVM
まずはDartをインストールする
brew tap dart-lang/dart
brew install dart
==> Installing dart from dart-lang/dart
==> Downloading https://storage.googleapis.com/dart-archive/channels/stable/release/2.10.4/sdk/dartsdk-macos-x64-release.zip
######################################################################## 100.0%
==> Caveats
Please note the path to the Dart SDK:
/opt/homebrew/opt/dart/libexec
==> Summary
🍺 /opt/homebrew/Cellar/dart/2.10.4: 510 files, 429MB, built in 5 seconds
PATHを通す
FVMなど、インストールしたパッケージを使えるようにPATHを通しておきます。
echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.zshrc
# 更新
source ~/.zshrc
# 確認
printenv PATH
FVM をインストール
pub global activate fvm
# Installed executable fvm.
# Activated fvm 1.3.7.
使用例
fvm install stable
# Version installed: stable
fvm list
# stable
VSCode に settings.jsonを追加
{
"dart.flutterSdkPaths": [".fvm/flutter_sdk"],
}
AndroidStudio
brew install --cask android-studio
==> Downloading https://dl.google.com/dl/android/studio/install/4.1.1.0/android-studio-ide-201.6953283-mac.dmg
######################################################################## 100.0%
==> Installing Cask android-studio
==> Moving App 'Android Studio.app' to '/Applications/Android Studio.app'.
🍺 android-studio was successfully installed!
起動
Unable to install Intel® HAXM
Your CPU does not support VT-x.
Unfortunately, your computer does not support hardware accelerated virtualization.
Here are some of your options:
1) Use a physical device for testing
2) Develop on a Windows/OSX computer with an Intel processor that supports VT-x and NX
3) Develop on a Linux computer that supports VT-x or SVM
4) Use an Android Virtual Device based on an ARM system image
(This is 10x slower than hardware accelerated virtualization)
Flutter Run (まずはAndroidのみ)
Android実機で起動してみる
→ Android のライセンスに同意していないエラーが出る(忘れてた)
fvm flutter doctor --android-licenses
DevTools をインストールしておく
$ pub global activate devtools
Installed executable devtools.
Activated devtools 0.9.3+4.
fvm flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-arm, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[!] Xcode - develop for iOS and macOS (Xcode 12.3)
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install:
sudo gem install cocoapods
[!] Android Studio (version 4.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (1 available)
! Doctor found issues in 2 categories.
Androidの実機で起動できることを確認!
Notion
Apple Silicon 最適化済み👍
Biscuit
2020年12月27日現在、M1未対応
プライベート/仕事用 のようにセッションを分けてウェブアプリを管理できる。
メインのブラウザとして使うのには心許ないが、例えば仕事先によってGoogle等のアカウントを分けて管理できるのが便利。
$ brew install --cask biscuit
==> Downloading https://github.com/agata/dl.biscuit/releases/download/v1.2.13/Biscuit-1.2.13.dmg
==> Installing Cask biscuit
==> Moving App 'Biscuit.app' to '/Applications/Biscuit.app'.
🍺 biscuit was successfully installed!
Zoom
Apple Silicon 最適化済み👍
Flutter iOS ビルド
Xcode はインストールしてあること前提で…
# CocoaPods をインストール
$ sudo gem install cocoapods
# ワークアラウンドを実行
$ arch -x86_64 sudo gem install ffi
$ pod --version # -> 1.10.0
iOSシミュレータにて、FlutterでのiOSアプリが起動できることを確認しました🎉
arch -x86_64
も不要になったという意見もありましたが、僕の環境では必要でした。
次回また省略して試してみたい✍️