개발일지

KDoctor - Cocoapods 본문

카테고리 없음

KDoctor - Cocoapods

강태종 2023. 6. 17. 17:11

아래와 같은 에러 메시지가 나올 때

[✖] Cocoapods
  ✖ System ruby is currently used
    CocoaPods is not compatible with system ruby installation on Apple M1 computers.
    Please install ruby via Homebrew, rvm, rbenv or other tool and make it default
    Detailed information: https://stackoverflow.com/questions/64901180/how-to-run-cocoapods-on-apple-silicon-m1/66556339#66556339

 

안내대로 수행한다.

https://stackoverflow.com/questions/64901180/how-to-run-cocoapods-on-apple-silicon-m1/66556339#66556339

 

How to run CocoaPods on Apple Silicon (M1)

I have a Flutter project that I'm trying to run on iOS. It runs normally on my Intel-based Mac, but on my new Apple Silicon-based M1 Mac it fails to install pods. LoadError - dlsym(0x7f8926035eb0,

stackoverflow.com

 

1. Homebrew를 통해 Ruby를 다운 받습니다.

- brew install ruby

 

2. Homebrew로 받은 Ruby를 Path 설정합니다.

export PATH=/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATH >> /Users/wk10695/.zprofile
export PATH=/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATH >> /Users/wk10695/.zshrc

 


아래와 같은 메시지가 나올 때

[✖] Cocoapods
  ✖ cocoapods not found
    Get cocoapods from https://guides.cocoapods.org/using/getting-started.html#installation

 

Homebrew로 cocoapods를 받습니다.

brew instal cocoapods
Comments