I have 2 private pods in my pod specs repository, let's say Pod1 and Pod2.
I want to include Pod2 as a dependency of Pod1, so I tried adding this line in Pod1.podspec:
spec.dependency 'Pod2', '~> 1.0.2'
Then, I tried linting my pod with a pod spec lint, and got this error:
ERROR | [iOS] unknown: Encountered an unknown error (Unable to find a specification for Pod2 (~> 1.0.2) depended upon by Pod1
After a few research, I found this thread on SO recommending to specify the sources on the lint command:
pod spec lint --sources='{MY_POD1_REPO_URL.git, MY_POD2_REPO_URL.git}'
Now, I'm getting this error instead:
- ERROR | [iOS] unknown: Encountered an unknown error (An unexpected version directory Classes was encountered for the /Users/me/.cocoapods/repos/bitbucket-pod2.repo/Pod2 Pod in the Pod2 repository.) during validation.
What should I do? Thank you for your help.