Issue when creating my first CocoaPod

后端 未结 4 1917
野性不改
野性不改 2021-01-01 10:18

I am trying to create my first pod and is following this tutorial: http://www.sitepoint.com/creating-cocoapods/

But when I do:

pod spec lint GLLingoM         


        
相关标签:
4条回答
  • 2021-01-01 10:46

    Sometimes the following command line will create a problem, if you are copy pasting into terminal.

    Example

    //incorrect
    git tag ‘0.1.0’
    //Will create a tag ‘0.1.0’
    
    //correct
    git tag '0.1.0'
    //will create a tag 0.1.0
    

    So better to type the single quotes, it may prevent this kind of unexpected issues. And go check your repo whether these tags are created properly.

    0 讨论(0)
  • 2021-01-01 10:48

    You can also add a tag to your branch in terminal:

    git tag 0.1.0
    git push --tags
    
    0 讨论(0)
  • 2021-01-01 10:54

    You have pointed to a branch called 0.1.0 in your podspec, and you simply need to push a branch of that name to github. Many people use tags instead of branches to indicate which commit to use for each pod version, and I suggest that you do this instead of pointing to a branch. Please post the source section of your podspec for more specific details.

    0 讨论(0)
  • 2021-01-01 11:11

    Add a 0.1.0 version for your github repo. Image from Github incase the link dies:

    0 讨论(0)
提交回复
热议问题