Latest 1.0.1
Homepage https://github.com/JessieWu0921/JWLibraryDemo
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, Foundation
Authors

demo
公有pod仓库的几个比较重要的命令:

//检测是否在cocoapods的pod trunk中注册

$ pod trunk me

//若没有注册 则注册

$ pod trunk register ‘GitHub_Email’ ‘GitHubUserName’ –verbose

//创建spec 也是repo 生成.podspec文件

$ pod spec create MyLib

//检测spec的合法性 期间可以会有些error 根据error信息修改相应的.podspec文件里的内容

$ pod lib lint –allow-warnings

//将repo添加到 pod trunk (每次修改lib最好都打新的tag,并修改相应的.podspec文件更新pod trunk库)

$ pod trunk push MyLib.podspec

//每次修改lib 最好都打新的tag:

$ git tag tagNo -m "update message"

$ git push origin –tags

//验证pod spec的合法性:pod lib lint or pod spec lint出现device错误的解决方法之一(我遇到的问题是:我的电脑里有两个版本的Xcode,所以simcl报错)

$ sudo xcode-select –switch /Application/Xcode.app

私有仓库的区别

除了.podspec文件中的描述的一些不同

//私有仓库的repo
$ pod repo add repoName PrivateLibRepositionUrl
$ pod repo push repoName LibName.podspec

Latest podspec

{
    "name": "JWLibraryDemo",
    "version": "1.0.1",
    "summary": "That is a study create pod demo.",
    "description": "That is a study create pod -- you can use the lib to show guide view.",
    "homepage": "https://github.com/JessieWu0921/JWLibraryDemo",
    "license": "MIT",
    "authors": {
        "JessieWu": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/JessieWu0921/JWLibraryDemo.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "JWLibraryDemo",
        "JWLibraryDemo/**/*.{h,m}"
    ],
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This