Swift 刚入门,写点东西练手。
碰到一个问题,我试着发布到 cocoaPods 上去,执行pod --verbose spec lint
这个命令的时候是验证通过了的,但每次pod trunk push
都出现这个错误You are not allowed to push new versions for this pod,详细:
-> "HTTP/1.1 403 Forbidden\r\n"
-> "Date: Thu, 10 Mar 2016 03:37:03 GMT\r\n"
-> "Connection: keep-alive\r\n"
-> "Strict-Transport-Security: max-age=31536000\r\n"
-> "Content-Type: application/json\r\n"
-> "Content-Length: 66\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Server: thin 1.6.2 codename Doc Brown\r\n"
-> "Via: 1.1 vegur\r\n"
-> "\r\n"
reading 66 bytes...
-> "{\"error\":\"You are not allowed to push new versions for this pod.\"}"
read 66 bytes
Conn keep-alive
有人知道是什么原因吗?
1
cheng4741 OP 终于弄好了,原来是跟别人的库重名了,我只能改名了。
以后发布之前记得用这个命令检查一下`pod trunk info 库的名字`是否有人已经使用了这个名字,`pod search `搜不到不代表没有 |