Alamofire No Such Module (CocoaPods)

后端 未结 17 1569
借酒劲吻你
借酒劲吻你 2020-12-09 15:26

Using Xcode 7

I am trying to install Alamofire in a sample project. Have used the instructions from Ray Wenderlich\'s page

Only change from above link is the

相关标签:
17条回答
  • 2020-12-09 15:53

    For absolute newbie just close xcode project and open by the new way. Choose in your folder file which contains extension like this: .xcodeproj and just enjoy you life.

    0 讨论(0)
  • 2020-12-09 15:55

    [For future seekers] you could have missed the second step from the below :

    Go to Project Setting

    1. Go to Build Phase tab, create a new run script phase and add an input file to your Alamofire framework. In my case I set $(SRCROOT)/Carthage/Build/IOS/Alamofire.framework
    2. Go to General tab, scroll down to linked framework and libraries add Alamofire.Framework folder. You probably won't find it from list so you need to press "Add Other" button and introduce it yourself.
    0 讨论(0)
  • 2020-12-09 15:57

    Have been facing the same problem, following trick resolved the issue

    Go to Manage scheme -> Select pod library that is causing issue -> Build
    
    Change back the scheme to project and then run the app, you are good to go
    

    Note: If you don't see the pod library in the scheme, go to Manage scheme and select the pod library that you would like to build.

    0 讨论(0)
  • 2020-12-09 15:58

    The Trick for me was to open the .xcworkspace file rather then the original project file itself.

    0 讨论(0)
  • 2020-12-09 15:58

    working this:

    Scheme -> Manage Schemes...
    
    checked Alamofire checkbox → Build Alamofire scheme
    

    and, if you used Playground , you should change settings Playground:

    View -> Utilities -> Show File Inspector 
    
    Platform OSX → iOS
    
    0 讨论(0)
  • 2020-12-09 15:58

    go to finder locate the project and navigate to the '.xcworkspace' file. thats where your pods are installed. if you go to your original project '.xcodeproj' you will only the pod debug files. hopes this helps. took me a while to figure out the problem too.

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