Latest 0.0.1
Homepage https://github.com/wujunyang/testCocoaPod
License MIT
Platforms ios 7.0, requires ARC
Authors

testCocoaPod

测试提交到官网Pod

1:创建podspec文件

pod spec create wjyTestCocoaPod

2:命令进行验证

pod lib lint wjyTestCocoaPod.podspec

3:注册CocoaPods账号,邮件验证

pod trunk register [email protected] ‘wujunyang’ –description=’测试提交’

4:检查账号是否创建成功

pod trunk me

5:检测文件格式的有效性

pod spec lint –allow-warnings

6:提交上传

pod trunk push wjyTestCocoaPod.podspec –allow-warnings

7:验证是否上传成功

pod search wjyTestCocoaPod

注意:release版本不能带v. 直接如:0.0.1 否则会报,查找不到版本:

[iOS] unknown: Encountered an unknown error ([!] /usr/bin/git clone https://github.com/wujunyang/testCocoaPod.git /var/folders/qw/nrvzl2sj2l98qgpyqq6b3qvh0000gn/T/d20161101-11140-19txqzy –template= –single-branch –depth 1 –branch 0.0.1

注意:命名最好是有代表性,避免跟别人一样,否则会导致上传失败

成功后显示如下:

-> wjyTestCocoaPod (0.0.1)
A short description of wjyTestCocoaPod.
pod ‘wjyTestCocoaPod’, ‘~> 0.0.1’

Latest podspec

{
    "name": "wjyTestCocoaPod",
    "version": "0.0.1",
    "summary": "A short description of wjyTestCocoaPod.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/wujunyang/testCocoaPod",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": {
        "tabwu": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/wujunyang/testCocoaPod.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "Class",
        "Class/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This