-
Mac M1 Homebrew, Ruby, RVM, Fastlane 설치 방법Programming/iOS 2021. 5. 2. 02:25반응형
요약:
1. M1에서 Fastlane 동작이 안 되었다.
2. Ruby 를 새로 설치하려고 많은 시도를 했으나, rvm, rbenv 다 실패했다.
3. 그냥 무시하고 예전에 설치됐었던 ruby를 다 지우고, fastlane 을 설치했더니, 성공했다...
1. Install homebrew
gist.github.com/nrubin29/bea5aa83e8dfa91370fe83b62dad6dfa
# We'll be installing Homebrew in the /opt directory. cd /opt # Create a directory for Homebrew. This requires root permissions. sudo mkdir homebrew # Make us the owner of the directory so that we no longer require root permissions. sudo chown -R $(whoami) /opt/homebrew # Download and unzip Homebrew. This command can be found at https://docs.brew.sh/Installation. curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew # Add the Homebrew bin directory to the PATH. If you don't use zsh, you'll need to do this yourself. echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc
2. Install RVMwww.driftingruby.com/episodes/a-rubyist-s-apple-m1-review\curl -sSL https://get.rvm.io | bash -s stable source $HOME/.rvm/scripts/rvm
tar -xzf openssl-OpenSSL_1_0_2u.tar.gz cd openssl-OpenSSL_1_0_2u ./Configure darwin64-x86_64-cc --prefix=/usr/local/opt/openssl@1.0 make make test sudo make install rvm install 2.7.1 --with-openssl-dir=/usr/local/opt/openssl@1.0
3. Install Rubystackoverflow.com/questions/48973268/error-running-rvm-make-j-1arch -arm64 brew install automake libtool coreutils libksba zlib rvm install 2.7.2 --disable-dtrace
github.com/rbenv/ruby-build/issues/1691#issuecomment-7805275004. Check Ruby versionruby -version
5. Install Fastlane
brew install fastlane
6. Fix Xcode Error
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
반응형'Programming > iOS' 카테고리의 다른 글
iOS14, iOS15 아이폰 화면 어두워짐 원인과 5가지 해결방법 (0) 2021.09.25 2021 애플 9월 이벤트 정리 (아이폰13, 아이패드 미니, 애플워치7세대) (0) 2021.09.15 ios swift http, https webView info.plist 설정하기 (0) 2018.05.12 ios swift4 키보드 숨기기 두가지 방법. keyboard dismiss. (0) 2018.05.11 swift javascript 연동, 함수 호출하기 (0) 2018.05.03