Cocoapods + Cannot load underlying module for 'x'

前端 未结 21 964
梦谈多话
梦谈多话 2020-12-25 09:15

I am running XCode 7, Swift 2.0, iOS 9.

I want to install Alamofire in my project using Cocoapods. I have done the following:

gem install cocoapods

21条回答
  •  时光取名叫无心
    2020-12-25 09:50

    Have you checked if you have a recent version of Cocoapods ? You can update by either updating all your gems :

    sudo gem update
    

    or just reinstall Cocoapods:

     [sudo] gem install cocoapods
    

    If that doesn't help take also a look at : CocoaPods - build for iOS 9 / Swift 2 with Xcode-beta

    where is shows you how to easily change the Command-Line tools version in the Xcode Preferences "Locations" tab, and change "Command Line Tools" to Xcode 7.0.

提交回复
热议问题