Cocoapods + Cannot load underlying module for 'x'

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

    Cannot load underlying module for 'x'for SWIFT :

    How to fix the Issue:

    step:1 Create a New project and build&run Successfully without installing pod.

    step:2 After build&run the Project Successfully ,Now try to install pod and then try to importrealm,alamofire,charts etc it will work like a charm.

    Failure Case --> New project -> Add (realm,alamofire,charts etc) via cocoapods w/o building first -> open Xcode workspace -> build&run

    Success Case -->New project -> build&run -> add (realm,alamofire,charts etc)via cocoapods -> open Xcode workspace -> build&run again = success

提交回复
热议问题