pod update - no such file - ruby

I get this error when doing a pod update.
pod update
[in /Users/snowcrash/myproject]
Update all pods
Analyzing dependencies
/Users/snowcrash/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/pathname.rb:425:in `open': No such file or directory # dir_initialize - /Users/snowcrash/.cocoapods/repos (Errno::ENOENT)
from /Users/snowcrash/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/pathname.rb:425:in `foreach'
Any idea why?

This was fixed as follows:
rm -rf ~/.cocoapods
pod setup
See also this:
Error on pod install

Related

CDN: trunk Repo update failed - 12 error(s):

Getting error when I tried to update pod,
pod update
Error found,
[!] CDN: trunk Repo update failed - 12 error(s):
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/9/b/5/FBSDKCoreKit/6.1.0-alpha/FBSDKCoreKit.podspec.json Response: Timeout was reached
However, I can access the json path smoothly from my browser.
How to resolve this?
I have same issue like yours, I fixed it by running:
pod repo remove trunk and then pod install, once these are complete I ran pod update and it updated everything.
I ran into same issue , following steps helped me to fix these errors-
comment git path for cocoa pods and add path for CDN
pod 'TensorFlowLiteSelectTfOps', '~> 0.0.1-nightly'
pod repo remove trunk
pod install
No of errors reduced , keep repeating step 4 until u get no errors and it starts installing pod
I got this error with FirebaseRemoteConfig 7.1.0.
In my case, above answers didn't work.
pod repo remove trunk
Add GitHub path to Podfile
But it was resolved after I ate dinner... (maybe caused by CDN server)
if you are on mac
just run
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
then go do
pod install
If none of things works for you then try to update your cocoapods using
sudo gem install cocoapods
It will definitely fix issue. :)

Cocoapods error in Xcode

I am unable to run my Xcode project because of such cocoa pods errors:
diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
Inside my Podfile :
source 'https://github.com/CocoaPods/specs.git'
workspace 'LongPathToMyProject/..../.../MyProject.xcworkspace'
I tried 'pod install' a lot of times, also i tried
rm -rf MyProject.xcworkspace
pod install
But it is not helping me.
Your file .xcodeproj and your podfile must be in the same folder. You don't have to manually create your .workspace. Then, in the same folder run:
pod install
If it doesn't work, then install pod deintegrate:
gem install cocoapods-deintegrate
and try to deintegrate existing pods:
pod deintegrate
before running pod install again

how to call 'pod setup' with cocoapods 0.39

I am using cocoapods 0.39 and i am getting a '1.0 required' error.
[!] The `master` repo requires CocoaPods 1.0.0 -  (currently using 0.39.0)
Update Cocoapods, or checkout the appropriate tag in the repo.
Error when running pod install explains how to make pod install command work, but I can't figure out how to succesfully pass pod setup as it seems to have the new repo build-in
Here is some info about what happened.
http://blog.cocoapods.org/Sharding/
Just replace the current source in your Podfile with this:
https://github.com/CocoaPods/Old-Specs
Then run pod install.
you can just execute this commande :
sudo gem install cocoapods
For others who are facing the same problem, write following command in terminal
sudo gem install -n /usr/local/bin cocoapods
if you need to run pod setup with 0.39 call this instead:
(cd ~/.cocoapods/repos && git clone https://github.com/CocoaPods/Specs.git && mv Specs master && cd master && git checkout v0.32.1)
for making pod install follow my link in the original post or look at Mereuta's answer.

How to install new pods without updating old existing pods in pod file?

Hi I want to install new pod in my existing project, and in that there are some old pod files which we are using, So I don't want to disturb them (don't want update of old pods), I want to install only the required pod. So in stack overflow I got some results. And I tried but no use is there any other way to do this ?
I tried 3 different ways but no use :
a. Added required pod in the pod file then in terminal, $pod install
a. Added required pod in the pod file then in terminal, $pod install --no --repo-update
a. I opened podfile.lock in textfield. I checked my old pod versions.
b. Modified pod file pods as
Old Pod => pod ‘AFNetworking’, ‘~> 3.0’ to pod ‘AFNetworking’, ‘3.0.0’
c. Added new pod then did $pod install or $pod install --no --repo-update in terminal.
So please help me how to do this ?

My cocoapods lost a lot of Framework

My cocoapods like this:
$ pod list
424 pods were found
$ pod --version
0.29.0
Someone else's computer like that:
$ pod list
4281 pods were found
$ pod --version
0.31.0
How do I do like that?
Run
[sudo] gem install cocoapods
Again to get the newest version of the command line tool. To setup the master repo you then run
pod setup

Resources