我需要安装
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 //////////////////////////////////////////
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”