AlamoFire不使用tvOS / CocoaPods

时间:2015-11-11 14:34:10

标签: cocoapods alamofire tvos

AlamoFire似乎没有使用CocoaPods来获取tvOS - 这是信息和错误消息。

pod --version - 0.39.0

Podfile:

platform :tvos, '9.0'
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'tvOS'

终端:

> pod install
Updating local specs repositories
Analyzing dependencies
Pre-downloading: `Alamofire` from `https://github.com/Alamofire/Alamofire.git`, branch `tvOS`

[!] Error installing Alamofire
[!] /usr/bin/git clone https://github.com/Alamofire/Alamofire.git /var/folders/w_/90_3ly_d1xl6t0gfg9xmr52w0000gn/T/d20151111-1787-1j3pdql --single-branch --depth 1 --branch tvOS

Cloning into '/var/folders/w_/90_3ly_d1xl6t0gfg9xmr52w0000gn/T/d20151111-1787-1j3pdql'...
warning: Could not find remote branch tvOS to clone.
fatal: Remote branch tvOS not found in upstream origin

2 个答案:

答案 0 :(得分:2)

您不再需要使用特定分支,显然 tvOS 分支已经合并为主分支,并且它不再存在。

答案 1 :(得分:2)

source 'https://github.com/CocoaPods/Specs.git'
platform :tvos, '9.0'
use_frameworks!

pod 'Alamofire', '~> 3.0'

适合我