Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods installation for YouTube integration

I need to install cocoapods for youtube integration,i used this link http://www.raywenderlich.com/64546/introduction-to-cocoapods-2 for reference

This is my 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

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

and i am getting this error code when i tried to install pods

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$ 

I have installed pod with pod 'AFNetworking', '2.2.1' but I am getting error when I'm trying to install pod

"YouTube-Player-iOS-Helper", "~> 0.1"
like image 415
Ansal Antony Avatar asked Apr 29 '15 10:04

Ansal Antony


People also ask

Does CocoaPods require Xcode?

In order to use CocoaPods you need to define the Xcode target to link them to. So for example if you are writing an iOS app, it would be the name of your app.

Is CocoaPods only for iOS?

Here at Carbon Five, we consider testing the software we write to be crucial to the long term stability and velocity of our projects. We also value developer productivity.


3 Answers

u can use this link for referance : https://github.com/youtube/youtube-ios-player-helper

use these pod command instead of the old one pod "youtube-ios-player-helper", "~> 0.1.1"

like image 163
SARATH SASI Avatar answered Oct 01 '22 03:10

SARATH SASI


Replace your pod line with this one:

pod "youtube-ios-player-helper", "~> 0.1.1"
like image 35
Eric Aya Avatar answered Oct 01 '22 03:10

Eric Aya


The latest version is 0.1.4:

pod "youtube-ios-player-helper", "~> 0.1.4"

Notice that everything is lowercase.

like image 40
linker Avatar answered Oct 01 '22 05:10

linker