1
我已經構建了一個用於我公司的私有CocoaPods庫。這個回購可以推到gitlab.com。過程是這樣的:一個意外的版本目錄「Assets」遇到了Private Pod
//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://[email protected]/zlanchun/PZResources.git
//6 pod repo add
pod repo add PZResources https://[email protected]/zlanchun/PZResources.git
//6 pod repo push
pod repo push PZResources PZResources.podspec --sources=https://[email protected]/zlanchun/PZResources.git
然後我打開一個新的項目,莢它,新庫添加到Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '7.0'
source 'https://[email protected]/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
上述步驟後,出現此錯誤:
[!] An unexpected version directory `Assets` was encountered for the `/Users/z/.cocoapods/repos/PZResources/PZResources` Pod in the `PZResources` repository.
我認爲我的程序是正確的,但是發生了這個錯誤。我不知道什麼是錯的。