Reputation: 5153
I have created a new iOS framework in which I listed external cocoapods as dependancies in my podspec file.
I successfully ran podspec lint without warnings/errors and then pushed the trunk which was also successful.
I read in several places that it usually takes up to an hour to show up so after 2 hours I tried to integrate the pod into a demo project using pod install
, it gave me some errors like:
All of which I disagree to. So upon further research, I saw some people even had to wait for 7 hours as they had quite a heavy project, however, my library is not too heavy and it's dependancies are quite heavy but since they are not included in the project itself, I was wondering why it took so long.
Then I came across another pod install command pod install --repo-update
which I ran seconds after pod install
failed and it installed my pod and all of it's dependancies.
So I am curious to know what is the difference between these commands and how come one worked and the other did not ?
Thanks
Upvotes: 0
Views: 604
Reputation: 29572
pod install --repo-update
and pod update
update your local copy of the centralized CocoaPods Specs repository with the latest version.
pod install
will use the previous local copy on your machine.
If a pod publisher published a new version after the last time you updated your local copy, pod install
won't have access it to it. That's why you need to specify --repo-update
.
Upvotes: 1