Cocoapods升级到v1.8后pod trunk发生异常解决方案

错误信息
NoMethodError - undefined method `url' for nil:NilClass
/Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.4.0/lib/pod/command/trunk/push.rb:155:in `master_repo_url'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.4.0/lib/pod/command/trunk/push.rb:121:in `validate_podspec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.4.0/lib/pod/command/trunk/push.rb:70:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in `'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `
'
错误截图
Cocoapods升级到v1.8后pod trunk发生异常解决方案_第1张图片
截屏2019-10-30下午2.00.25.png

解决方案

1,移除master
pod repo remove master
2,重新更新master
pod update

Cocoapods升级到v1.8后pod trunk发生异常解决方案_第2张图片
image.png

3,重新执行pod trunk xxxx命令 ,就OK了


Cocoapods升级到v1.8后pod trunk发生异常解决方案_第3张图片
image.png

你可能感兴趣的:(Cocoapods升级到v1.8后pod trunk发生异常解决方案)