I am running CocoaPods to add a dependency to my project.
My pod file is located at Users/myUser/Desktop/project/project.
It looks like this:
source 'https://github.com/hackiftekhar/IQKeyboardManager.git'
pod 'IQKeyboardManager'
xcodeproj '../project.xcodeproj'
and it is named Podfile.
When I run pod install, I get this output:
Analyzing dependencies
[!] An unexpected version directory
Categorieswas encountered for the/Users/myUser/.cocoapods/repos/hackiftekhar/IQKeyboardManagerPod in theIQKeyboardManagerrepository.
What is CocoaPods expecting here and how can I fix this?
Thanks,
C
How to fix this is described in the Cocoapod repo, issue 6089.
Jest of it copied here in case link breaks in the future:
I try to create a private pod.
Environment: Xcode 8 Cocoapods 1.1.1
My Pods file tree:
looks like this
.
├── LICENSE
├── MoudlePod3
│ ├── 0.0.1
│ │ └── MoudlePod3.podspec
│ ├── TestObject3.h
│ └── TestObject3.m
├── MoudlePod3.podspec
└── README.md
Everything is perfect!
.
├── LICENSE
├── MoudlePod3
│ ├── 0.0.1
│ │ └── MoudlePod3.podspec
│ ├── 0.0.4
│ │ └── MoudlePod3.podspec
│ ├── NewClass
│ │ ├── TestObjectNew.h
│ │ └── TestObjectNew.m
│ ├── TestObject3.h
│ └── TestObject3.m
├── MoudlePod3.podspec
└── README.md
Increment podspec version to 0.0.4
Update client's podfile as follow: Demo Project Pod file:
source 'https://github.com/CocoaPods/Specs.git' source 'http:///ljb/MoudlePod3.git'
target 'MoudleApp' do pod 'MoudlePod3', '~> 0.0.4' end
run pod install
[!] An unexpected version directory NewClass was encountered for the /Users/apple/.cocoapods/repos/MoudlePod3/MoudlePod3 Pod in the MoudlePod3 repository.
or in my case fix the source line to point to the private specs repo not the pod's source repo... Doh!
Hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With