0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

M3 MacでKMP環境構築

Posted at

M3 MacでKMP環境構築したら詰まった💦

まずMacにJavaが入ってなかった💦

  1. homebrewでjdkをインストールしよう
brew install openjdk

PATHを通す:

echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc

kdoctor入れてなかった💦

  1. kdoctor install
brew install kdoctor

cocoapodsの設定が必要だ💦

  1. cocoapods install
brew install cocoapods
  1. gem install
sudo gem install cocoapods

設定の追加が必要なので.zshrcに追加

# システムPATH
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH

# Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"

# anyenv (anyenvを使用する場合)
if command -v anyenv 1>/dev/null 2>&1; then
  eval "$(anyenv init -)"
else
  # rbenv (anyenvを使用しない場合)
  if command -v rbenv 1>/dev/null 2>&1; then
    eval "$(rbenv init - zsh)"
  fi
fi

# Rails
alias be="bundle exec"
export PATH="$HOME/.rbenv/shims:$PATH"

# その他の設定やエイリアスをここに追加

# 環境変数の重複を削除
typeset -U PATHexport PATH="/opt/homebrew/opt/openjdk/bin:$PATH"

# kdoctor settings
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Android Studioに拡張機能が必要なので追加

kdoctorを実行して問題なければ環境構築が終わるはず。

kdoctor

最後に

Pathの設定などで詰まりましたが解決し無事環境構築を確認できました。今後伸びていく技術と思われるので、watchしたい。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?