最近升级到XCode 8.1试图为新项目安装Alamofire窗格。 Podfile:Alamofire安装失败 - Xcode 8.1
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
target 'app' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for app
pod 'Alamofire',
:git => 'https://github.com/Alamofire/Alamofire.git',
:branch => 'swift3'
end
我的终端回应: image
所以我该怎么办?
--Update-- 也试过pod 'Alamofire', '~> 4.0'
here is the result
我做了pod repo update
它不会在所有
参见[安装Alamofire 4](https://github.com/Alamofire/Alamofire#installation)和[迁移指南(https://github.com/Alamofire/Alamofire/blob/master/Documentation /Alamofire%204.0%20Migration%20Guide.md) – Moritz
@EricAya这就是我得到的'分析依赖关系 [!]无法满足以下要求: - 'Podfile'所需的'Alamofire(〜> 4.0)' 您的规范资源中没有包含满足依赖关系的规范:'Alamofire(〜> 4.0)'。 您可以: *您可以使用'pod repo update'更新的过期源回购站。 *错误输入了名称或版本。 *未添加将Podspec承载到您的Podfile的源回购。 注意:从CocoaPods 1.0开始,'pod repo update'默认情况下不会在'pod install'上发生。 'pod version is 1.1.1 – VahidGR
你应该做'pod repo update'然后'pod install',这是需要更新可用的pod列表。 – Moritz