Cocoapods + Cannot load underlying module for 'x'

前端 未结 21 1029
梦谈多话
梦谈多话 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 10:07

    Same issue for me. I solved that by removing Alamofire version in pod file.

    Pod file as

    # Uncomment this line to define a global platform for your project
    platform :ios, "8.0"
    
    # Uncomment this line if you're using Swift
    use_frameworks!
    
    target 'GettingSwift' do
     pod 'Alamofire'
    end
    
    target 'GettingSwiftTests' do
    end
    

提交回复
热议问题