Daniel ORTIZ
Daniel ORTIZ

Reputation: 2520

IOS COCOAPOD with sources

I am trying to update the CocoaPods in my Xcode project, but when I try to run pod update, it doesn't work.

My podfile:

source 'https://github.com/MapQuest/podspecs-ios.git'
target 'FireBaseFixed' do
pod 'Firebase', '3.11.0'
pod 'MOCA'
pod 'MapQuestMaps'
end

And the response

daortiz:FireBaseFixed dortiz$ pod update 
Update all pods 
Updating local specs repositories 
Analyzing dependencies 
[!] Unable to find a specification for `Firebase (= 3.11.0)`

[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.

What I doing wrong?

Upvotes: 2

Views: 103

Answers (2)

Sivajee Battina
Sivajee Battina

Reputation: 4174

Below is the working version of your podfile

   # Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

source 'https://github.com/MapQuest/podspecs-ios.git'
source 'https://github.com/CocoaPods/Specs.git'

target 'FireBaseFixed' do

pod 'Firebase'
pod 'MOCA'
pod 'MapQuestMaps’, '~>3.4.1-1.1'

end

Upvotes: 1

Edwin
Edwin

Reputation: 3802

Any reason you require Firebase 3.11.0 exactly?

To get the latest framework, use

pod 'Firebase'

Anyways, your problem is not the version, rather the sources, you seem to have omitted cocoapods main source and included only MapQuestMaps.

You also need to specify the version of MapQuestMaps as the are all pre-release versions and cocoapods will cry foul.

The code below fixes that.

source 'https://github.com/MapQuest/podspecs-ios.git'
source 'https://github.com/CocoaPods/Specs.git'

target 'FireBaseFixed' do
    pod 'Firebase', '3.11.0'
    pod 'MOCA'
    pod 'MapQuestMaps', '3.4.1-1.1'
end

If the above doesn't work, sync your repo by running the following

pod repo update --verbose

Then run

pod install

Upvotes: 1

Related Questions