Errors when installing cocoapods with gem

后端 未结 7 2019
旧巷少年郎
旧巷少年郎 2021-02-04 01:41

I am using macOS Mojave and when I try to install cocoapods using gem I am getting the following error.

Building native extensions. This could take a whi

7条回答
  •  一整个雨季
    2021-02-04 02:14

    just spent my day figuring out solution, I am using MacOS Big Sur Beta 8. to upgrade cocoapods with gem, try this:

    1. install rbenv
    • git clone https://github.com/rbenv/rbenv.git ~/.rbenv

    • cd ~/.rbenv && src/configure && make -C src

    • Add ~/.rbenv/bin to your $PATH for access to the rbenv command-line utility. see: https://github.com/rbenv/rbenv#basic-github-checkout

    • make sure export PATH="$HOME/.rbenv/shims:${PATH}" was added to your $PATH

    1. xcode-select --switch /Applications/Xcode.app/Contents/Develope

    2. gem install cocoapods should work like a charm!

提交回复
热议问题