I have created my own Cocoapod. When I released a new version, then it should be available for the users. I have pushed the latest changes to git Cocoapods repository. Then I ran the command:
pod update
It showing the message for latest version update. But I am not getting the changes in my pod.
1: Run this command in terminal to update pod repo in your system
pod repo update
2: Then run
pod deintegrate
pod clean
pod install
Related
I can't load all the requested pods apparently there is a problem with these two project dependencies ... "pod upgrade" terminal command results are:
Updating local specs repositories
Analyzing dependencies
firebase_auth: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_database: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In Podfile:
firebase_database (from `.symlinks/plugins/firebase_database/ios`) was resolved to 10.0.7, which depends on
Firebase/Database (= 10.3.0)
flutter_geofire (from `.symlinks/plugins/flutter_geofire/ios`) was resolved to 0.0.1, which depends on
GeoFire (~> 4.0) was resolved to 4.1.0, which depends on
Firebase/Database (~> 6.0)
Inside /ios directory, remove the Podfile.lock file.
Then, on terminal, run to this directory:
cd ./ios
Then run the following command:
pod deintegrate && pod repo update && pod install
The command is composed of three parts:
"pod deintegrate" - This command will deintegrate CocoaPods from the project, removing any references to Pods and the Podfile.lock file
"pod repo update" - This command updates the local copy of the CocoaPods spec repo, which is the source of information about available pods.
"pod install" - This command installs the pods specified in the Podfile, and creates an Xcode workspace if one does not already exist.
This command is useful when you want to update your project's dependencies and integrate the new version of the Pod without having any conflicts.
Delete the pod file inside the ios folder.
go to the terminal in path ios ios folder and run command "pod init"
manage signin procedure in xcode
noy try to run
I installed Cocoapods v1.7.0 on Mac Catalina 10.15.7 (19H2). Now I'm upgrading Cocoapods to v1.10.0.
Firstly I uninstall v1.7.0 following https://superuser.com/a/686319.
Then install v1.10.0 with no issue:
sudo gem install cocoapods
In my project folder, I run pod repo update:
$pod repo update ✔ 6s 17:17:13
Updating spec repo `trunk`
$pod repo update ✔ 3s 17:34:21
It only takes 3s with no issue, but I get nothing in folder ~/.cocoapods/repos/trunk/Specs(empty folder):(
Then as you may already know it cannot find any spec when running pod install:
pod install --repo-update
Updating local specs repositories
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
Analyzing dependencies
[!] Unable to find a specification for `Firebase/Analytics`
You have either:
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: Not pod Firebase/Analytics issue, tried other pods also got this error.
Any suggestion to fetch Cococapods CDN trunk Specs normally? Thanks in advance.
It's working by uninstalling CocoaPods v1.10.0 & then installing v1.8.0.
Don't know the root cause yet, guess have to install the first CocoaPods version with CDN.
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. :)
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 ?
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.