一、验证

 

function podlint() {
pod lib lint $1.podspec --use-libraries --allow-warnings --verbose --sources='http://xxx/ios/Specs.git' --no-clean
}

 

 

二、转json 然后上传

function podpush() {
pod ipc spec $1.podspec > $1.podspec.json
pod repo push xxx-ios-specs $1.podspec.json --use-libraries --allow-warnings --verbose --sources='http://xxx/ios/Specs.git'
rm $1.podspec.json
}