V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
cheng4741
V2EX  ›  分享创造

新鲜出炉的轮子,用 swift 写了个下拉选择菜单

  •  
  •   cheng4741 ·
    zhubinchen · 2016-03-10 12:40:57 +08:00 · 3022 次点击
    这是一个创建于 2941 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Swift 刚入门,写点东西练手。

    Github 地址

    碰到一个问题,我试着发布到 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 条回复    2016-03-11 15:56:43 +08:00
    cheng4741
        1
    cheng4741  
    OP
       2016-03-11 15:56:43 +08:00
    终于弄好了,原来是跟别人的库重名了,我只能改名了。
    以后发布之前记得用这个命令检查一下`pod trunk info 库的名字`是否有人已经使用了这个名字,`pod search `搜不到不代表没有
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5352 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:07 · PVG 15:07 · LAX 00:07 · JFK 03:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.