install cocoapods failed on mac

后端 未结 1 1519
无人共我
无人共我 2020-12-18 15:29

I tried to install cocoapods on mac according to the instructions http://cocoapods.org/ , but got the error as below:

$sudo gem install cocoapods

ERROR:  Wh         


        
相关标签:
1条回答
  • 2020-12-18 15:58

    Try this (Worked for me with OSX 10.10)

    1. Open Xcode 6
    2. Open Preferences
    3. Click the Locations tab
    4. Change the Command Line Tools version to Xcode 6.0
    5. Uninstall cocoapods

      $ sudo gem uninstall cocoapods

    6. Install xcodeproj

      $ sudo gem install xcodeproj

    7. Install cocoapods

      $ sudo gem install cocoapods

    Run pod --version to verify

    0 讨论(0)
提交回复
热议问题