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 information 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”

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...