My cocoapods lost a lot of Framework - cocoapods

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

Related

Invalid Podfile file: undefined method `enable_user_defined_build_types!'

I have installing gem on a Macbook Pro running Big Sur and M1 chip. I have followed the instructions given, added these two lines on top of my Podfile
plugin 'cocoapods-user-defined-build-types'
enable_user_defined_build_types!
then I am running the command
sudo gem install 'cocoapods-user-defined-build-types'
and gem is getting installed see below -
Successfully installed cocoapods-user-defined-build-types-0.0.7
Parsing documentation for cocoapods-user-defined-build-types-0.0.7
Done installing documentation for cocoapods-user-defined-build-types after 0 seconds
1 gem installed
Now, as soon as I run pod install, I get this error -
[!] Invalid Podfile file: undefined method `enable_user_defined_build_types!' for #<Pod::Podfile:0x0000000145251098 #defined_in_file=#<Pathname
Any idea what excatly is the problem here?
I solved this issue by installing specific version of cocoapods with gem.
Open a terminal in your Xcode project folder and run the commands below:
gem cleanup
brew uninstall cocoapods
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.10.0 -n /usr/local/bin
sudo gem install cocoapods-user-defined-build-types
pod install --repo-update
NOTE! If you using react-native before pod install --repo-update delete your node_modules folder and install again using npm
I was struggling to get a solution,
I was trying to install the snapkit and Firebase through cocoapods, I got pod init, but after insert inside the podfile the e.g. Snpakit when I tried the comand pod install i got this issue
[!] Invalid Podfile file: undefined method......
What solved for me
I installed the brew through terminal and by brew I reinstalled cocoapods
another thing that was crucial...
when I typed insert my pod
pod 'SnapKit', '~> 5.6.0'
The Podfile, automatically change de first character to uppercase
Pod 'SnapKit', '~> 5.6.0'
After you type your pod, try to leave the word pod in lowercase, after save and close, go to terminal and try again pod install
add gem 'cocoapods-user-defined-build-types' to your gemfile and run bundle install
this should work if the other solutions didn't

pod setup --verbose does not do anything

iMac:~ pierre-henri$ pod setup --verbose
iMac:~ pierre-henri$
I don't get more than that, the setup was successfull?
thank you for your help
Pierre-Henri
follow these commands to fix the problem
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.7.5

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.

CocoaPods install doesn't install pods

I'm in terminal and I've "installed Cocoapods" however when I go to list the pods it retrieves nothing.
XXX-MBP:Desktop XXX$ sudo gem install cocoapods
Password:
Successfully installed cocoapods-1.0.1
Parsing documentation for cocoapods-1.0.1
1 gem installed
XXX-MBP:Desktop XXX$ pod list
0 pods were found
XXX-MBP:Desktop XXX$
Then when I go to search for a particular pod it goes into repo mode and stops.
Thanks in advance!

CocoaPods Pod trunk delete not work

when I do:
$ pod --version
0.39.0
but if I try:
$ pod trunk delete
[!] Unknown command: delete Did you mean: register
Usage:
$ pod trunk COMMAND
Interact with the CocoaPods API (e.g. publishing new specs)
Commands:
+ add-owner Add an owner to a pod
+ info Returns information about a Pod.
+ me Display information about your sessions
+ push Publish a podspec
+ register Manage sessions
+ remove-owner Remove an owner from a pod
Options:
--silent Show nothing
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
Delete isn't a command for trunk.
You have a list of valid commands in your post.
It looks like the CocoaPods documentation for pod trunk delete is referring to the command which has been added in the (currently unreleased) CocoaPods 1.0 beta. You can see in the cocoapods-trunk changelog that this command has been added. Once that is released you'll be able to use it. In the meantime you could install the beta with
[sudo] gem install cocoapods --pre
The command pod trunk is for the third-party libraries which are upload to cocoapods by yourselves.
And if you want to delete a version of your third-party library like ABCManager(v1.0.2),you can type this:pod trunk delete ABCManager v1.0.2 and your library of version v1.0.2 will be deleted.

Resources