使用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)
发布评论