An unexpected version directory `Assets` was encountered for Private Pod

Viewed 3780

I have built a private CocoaPods repo that is used in my company. This repo can be pushed to gitlab.com. The procedure is like this:

//1
pod lib create PZResources

//2 change podspec
//3 add directory and images to PZResources.
//4 push these changes to gitlab.com. Then add tag and push tags to server.

//5 vertify spec 
pod spec lint --sources=https://zlanchun@gitlab.com/zlanchun/PZResources.git

//6 pod repo add 
pod repo add PZResources https://zlanchun@gitlab.com/zlanchun/PZResources.git

//6 pod repo push
pod repo push PZResources PZResources.podspec --sources=https://zlanchun@gitlab.com/zlanchun/PZResources.git

Then I open a new project, pod it, and add new library to the Podfile:

# Uncomment the next line to define a global platform for your project
platform :ios, '7.0'
source 'https://zlanchun@gitlab.com/zlanchun/PZResources.git'
source 'https://github.com/CocoaPods/Specs.git'

target 'PZDemo' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
pod "PZResources"
# Pods for PZDemo

end

After the above steps, this error occurs:

[!] An unexpected version directory `Assets` was encountered for the `/Users/z/.cocoapods/repos/PZResources/PZResources` Pod in the `PZResources` repository.

I think my procedure is correct, but this error occurred. I don't know what is wrong.

1 Answers
Related