【发布时间】:2017-05-25 07:37:03
【问题描述】:
我已经构建了一个私人 CocoaPods 存储库,用于我的公司。这个 repo 可以推送到 gitlab.com。程序是这样的:
//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
然后我打开一个新项目,对其进行 pod 处理,并将新库添加到 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
经过以上步骤,出现这个错误:
[!] An unexpected version directory `Assets` was encountered for the `/Users/z/.cocoapods/repos/PZResources/PZResources` Pod in the `PZResources` repository.
我认为我的程序是正确的,但是发生了这个错误。不知道怎么回事。
【问题讨论】: