Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo error with cordova: "The CocoaPods repo has not been synced yet" #9228

Closed
1 task done
distinctdan opened this issue Oct 8, 2019 · 6 comments
Closed
1 task done

Comments

@distinctdan
Copy link

Report

What did you do?

Ran cordova plugin add cordova-plugin-firebasex

What happened instead?

The install failed with the error:

Failed to install 'cordova-plugin-firebasex': undefined
CordovaError: Promise rejected with non-error: 'The CocoaPods repo has not been synced yet, this will take a long time (approximately 500MB as of Sept 2016). Please run pod setupfirst to sync the repo.'

I then tried running pod setup, which did nothing, then pod install in my ios project directory, which installed 0 dependencies.

Running pod repo update errors also: Errno::ENOENT - No such file or directory @ rb_sysopen - /Users/MyUsername/.cocoapods/repos/Spec_Lock

CocoaPods Environment

Stack

   CocoaPods : 1.8.3
        Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
    RubyGems : 2.5.2.3
        Host : Mac OS X 10.14.6 (18G103)
       Xcode : 11.1 (11A1027)
         Git : git version 2.9.2
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : 

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

Podfile

# DO NOT MODIFY -- auto-generated by Apache Cordova

platform :ios, '9.0'

target 'Orbus' do
	project 'Orbus.xcodeproj'

end
@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 8, 2019

You are hitting multiple issues. The first is a bug in Cordova and assumes CocoaPods works with the master specs repo. Since 1.8.x the master specs repo is not required.

The second issue is #9216.

@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 8, 2019

You are better off filing this issue with Cordova cocoapods plugin.

@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 8, 2019

Closing as the Spec_Lock issue is already filed and known issue. The other issue as I said it is better to file to them.

@dnkoutso dnkoutso closed this as completed Oct 8, 2019
@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 8, 2019

It seems their plugin assumes the master specs repo is there but as I said CocoaPods no longer clones the master specs repo by default in 1.8.x so the plugin should not expect that to happen.

@distinctdan
Copy link
Author

distinctdan commented Oct 8, 2019

Ok, thanks for the info. I was able to work around the issues by downgrading to 1.7.5, syncing the repo, then upgrading to 1.8.3. I'll file an issue on the cordova plugin page too, or link this one.

@dnkoutso
Copy link
Contributor

dnkoutso commented Oct 8, 2019

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants