本文介绍了Alamofire No Such Module(CocoaPods)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Xcode 7



我正在尝试在示例项目中安装Alamofire。使用了



PODFILE



TERMINAL



PS:我想用cocoapods来安装Alamofire。我不想从github页面下载它

解决方案

试试这个。



对于Swift 2.0,无需将Alamofire.xcodeproj添加到xcode中。只需从复制并粘贴源文件夹即可完成。



或者如果您想从Cocoapods安装Alamofire,请尝试下面的代码。

  source'https:// github.com/CocoaPods/Specs.git'
平台:ios,'8.0'
use_frameworks!

pod'Alamofire','〜> 2.0'


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 podfile -- which is from GitHub page here because the version has been updated. I have also used the Swift 2.0 branch.

Below is the snapshop of the error, my pod file and my terminal post installing the pod

PODFILE

TERMINAL

P.S: I want to use cocoapods to install Alamofire. I don't want to download it from github page

解决方案

Try this one.

For Swift 2.0 there is no need to add Alamofire.xcodeproj into your xcode. Simply copy and paste source folder from https://github.com/Alamofire and you are done.

or if you want to install Alamofire from Cocoapods then try below code.

  source 'https://github.com/CocoaPods/Specs.git'
  platform :ios, '8.0'
  use_frameworks!

  pod 'Alamofire', '~> 2.0'

这篇关于Alamofire No Such Module(CocoaPods)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 17:14