Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pod spec lint validation error due to Xcode errors

I have successfully pushed my pod to CocoaPods two three days ago with version number 0.1.0. Yesterday I had to add some new features to the pod, so I have made changes in Xcode, Created multiple Swift files, modified existing code.

Then I know that, this version should go out as a new tag. So I have created a new tag 0.1.1. and pushed changes to remote repo in GitHub. Also changed tag in podspec file. GitHub master repo and 0.1.1 has the same code which is equal to the local code. And there are no warnings or errors in Xcode, everything was perfect.

Then I have to test my pod, I ran pod lib lint, which successfully passed validation. When I ran pod spec lint, it gave me multiple Xcode errors and warnings which I have solved hours ago.

As I could see that pod spec lint is not looking into current swift files or into newly modified code. It shown errors and warnings related old code, And podspec file has proper version and tag. Remote repo is up to date in master and also in 0.1.1.

What could be the possible solution for this? Why this is happening? My Xcode swift files have completely changed but pod spec lint is pointing to some old code, How?

Is it due CocoaPods cache problem ?


1 Answers

got the same problem, cocoapods cache is here:

cd /Users/<#ur user name#>/Library/Caches/CocoaPods/Pods 

just delete /Pods directory and pod lint will work

or

pod cache clean YOUR_POD_NAME
like image 75
Zaporozhchenko Oleksandr Avatar answered Jul 27 '26 18:07

Zaporozhchenko Oleksandr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!