ios – 适用于YouTube集成的Cocoapods安装

我需要安装 cocoapods进行YouTube集成,我用这个链接 http://www.raywenderlich.com/64546/introduction-to-cocoapods-2作为参考

这是我的podfile

//////////////////////////////////////////
# Uncomment this line to define a global platform for your project
# platform :ios,'7.0'

target 'testyoutube' do

pod "YouTube-Player-iOS-Helper","~> 0.1"

end

target 'testyoutubeTests' do

end

                //////////////////////////////////////////

当我尝试安装pod时,我收到此错误代码

Ansals-Mac-mini:testyoutube ansalantony$pod install
Analyzing dependencies

CocoaPods 0.37.0.rc.1 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more @R_726_4045@ion see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

[!] Unable to find a specification for `YouTube-Player-iOS-Helper (~> 0.1)`
Ansals-Mac-mini:testyoutube ansalantony$

我已经安装pod的pod’AFNetworking’,’2.2.1′,但是当我试图安装pod时我收到错误

"YouTube-Player-iOS-Helper","~> 0.1"

解决方法

你可以使用这个链接参考: https://github.com/youtube/youtube-ios-player-helper

使用这些pod命令而不是旧的命令pod“youtube-ios-player-helper”,“〜> 0.1.1”

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...