Alamofire No Such Module(CocoaPods)

编程入门 行业动态 更新时间:2024-10-27 06:19:45
本文介绍了Alamofire No Such Module(CocoaPods)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

使用Xcode 7

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

PODFILE

TERMINAL

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

解决方案

试试这个。

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

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

source'https:// github/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 github/Alamofire and you are done.

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

source 'github/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! pod 'Alamofire', '~> 2.0'

更多推荐

Alamofire No Such Module(CocoaPods)

本文发布于:2023-11-26 03:38:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1632484.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Alamofire   Module   CocoaPods

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!