Cocoapods + Cannot load underlying module for 'x'

前端 未结 21 751
梦谈多话
梦谈多话 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:55

    When installing CocoaPods, be sure to specify ios 9.0 by deleteing the #. Therefore, # platform :ios, '9.0' should just be platform :ios, '9.0' Then, if the error shows again, simply build and run. After you build and run, the error should not return.

    Also, this can occur if you have more than one version of Xcode installed on your computer. Quit (not just close) all versions of Xcode first.

提交回复
热议问题