【发布时间】:2017-03-02 12:47:28
【问题描述】:
我正在尝试使用 pod 在我的 swift 项目中安装 Alamofire 4.4,我正在按照给定链接 (https://github.com/Alamofire/Alamofire) 中的步骤操作 但我面临这个问题:-
[!] Unable to satisfy the following requirements:
- `Alamofire (~> 4.4)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Alamofire (~> 4.4)`.
You have either:
* out-of-date source repos which you can update with `pod repo update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
我的系统中有: Mac操作系统:10.12.2 x_code 版本:8.2.1 快速版本:3.0.2
pod 文件配置:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testAlarmofireAndswiftyJson' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for testAlarmofireAndswiftyJson
pod 'Alamofire', '~> 4.4'
end
我卡在这里请帮忙。
【问题讨论】:
标签: ios iphone swift xcode alamofire