An unexpected version directory Assets.xcassets
was encountered
问题描述:
在使用cocoaPods制作自己的私有库时,制作完毕,执行 pod search ,也可以搜索到;但是执行 pod install 时,报错:An unexpected version directory
Assets.xcassets
was encountered for the/Users/ever/.cocoapods/repos/gitee-jiajiayouba-test_p/TEST_P
Pod in theTEST_P
repository.原因分析:
- podspec文件是否上传到了服务器;
- Podfile 的source 地址,是否是 spec repo 的地址,而不是具体某一个 pod 的地址;(我的错误原因是这个)
解决方案:
重新指定Podfile 文件中的私有spec repo 地址:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://gitee.com/jiajiayouba/EverSpecs.git'
target 'TEST_APP' do
platform:ios,'8.0'
pod 'TEST_P', '~> 0.0.1'
end