Latest 0.0.7
Homepage https://github.com/yangyueguang/MyCocoaPods
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, Foundation
Authors

MyCocoaPods

这是我所有自己上传和使用的cocoapods集合

help http://www.cocoachina.com/ios/20160415/15939.html

error http://www.jianshu.com/p/e5209ac6ce6b

podspec

Pod::Spec.new do |s|
s.name         = "GRBNavigationKit"
s.version      = "0.0.5"
s.summary      = "Yes ,this is my Summary is A short description of KNavigate."
s.frameworks = 'UIKit','Foundation'
s.requires_arc = true
s.platform = :ios
s.ios.deployment_target = '8.0'
s.description  = "this is the description you know ? yes ,so ,what do you want to do?Yes you are right"
s.homepage     = "https://github.com/yangyueguang/MyCocoaPods"
# s.screenshots  = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
s.license      = "MIT"
# s.license      = { :type => "MIT", :file => "FILE_LICENSE" }
s.author             = { "yangyueguang" => "[email protected]" }
# Or just: s.author    = ""
# s.authors            = { "" => "" }
# s.social_media_url   = "http://twitter.com/"
# s.platform     = :ios
# s.platform     = :ios, "5.0"
#  When using multiple platforms
# s.ios.deployment_target = "5.0"
# s.osx.deployment_target = "10.7"
# s.watchos.deployment_target = "2.0"
# s.tvos.deployment_target = "9.0"
s.source       = { :git => "https://github.com/yangyueguang/MyCocoaPods.git", :tag => "#{s.version}" }
s.source_files  = "GRBNavigationKit"
#, "GestureNavi/*.{h,m}"
# s.public_header_files = "Classes/**/*.h"
# s.resource  = "icon.png"
# s.resources = "Resources/*.png"
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
# s.framework  = "SomeFramework"
# s.frameworks = "SomeFramework", "AnotherFramework"
# s.library   = "iconv"
# s.libraries = "iconv", "xml2"
# s.requires_arc = true
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
# s.dependency "JSONKit", "~> 1.4"
    s.subspec 'JSONKit' do |js|
    js.source_files = 'GRBNavigationKit/JSONKit'
    js.requires_arc = false
    end
    s.subspec 'VRPlayer' do |ss|
    ss.source_files = 'GRBNavigationKit/VRPlayer'
    # ss.public_header_files = 'VRPlayer/*.h'
    ss.ios.frameworks = 'MobileCoreServices'
    end
end

创建github项目=》创建本地podspec文件=》github上release版本=》注册CocoaPods账号=》上传代码到cocoapods=》更新框架版本

git clone https://github/xx.git
git add .
git commit -m "建立代码仓库"
git push
git tag 0.0.1
git push --tag //到github上更新release #给源代码打版本标签,与podspec文件中version一致即可
pod spec create name //touch name.podspec
vim name.podspec
echo "3.0" > .swift-version 如果swift版本不对的话s.dependency "SDWebImage", "~> 3.7.1"
pod lib lint name.podspec --allow-warnings
pod lib lint --verbose
pod trunk register [email protected] 'yangyueguang' -description='薛超'
pod trunk me
pod spec lint --allow-warnings
pod trunk COMMAND
pod trunk push name.podspec  --allow-warnings
pod repo update
pod search name

pod 'GRBNavigationKit', '~> 0.0.5'

手势返回导航控制器,首次支持pod安装 pod ‘GRBNavigation’
网上的JSONKit导入项目中经常报21个错,因此我修复了错误之后把它以XJSONKit的名字上传到podspec上了,以后可以用 pod 'XJSONKit'来代替pod 'JSONKit'

RepositoryBranch

这是只克隆一个仓库中的某个文件夹或某个分支到本地进行修改并上传的说明。

Desktop super$ mkdir devops
Desktop super$ cd devops/
Desktop super$ git init    #初始化空库 <br>
Desktop super$ git remote add -f origin https://github.com/yangyueguang/RepositoryBranch.git   #拉取remote的all objects信息

*Updating origin
remote: Counting objects: 70, done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 70 (delta 15), reused 0 (delta 0)
Unpacking objects: 100% (70/70), done.
From https://github.com/yangyueguang/RepositoryBranch
* [new branch] master -> origin/master

Desktop super$ git config core.sparsecheckout true   #开启sparse clone
Desktop super$ echo "devops/" >> .git/info/sparse-checkout   #设置需要pull的目录,*表示所有,!表示匹配相反的
Desktop super$ echo "another/sub/tree" >> .git/info/sparse-checkout
Desktop super$ more .git/info/sparse-checkout
Desktop super$ git pull origin master  #更新

From https://github.com/yangyueguang/RepositoryBranch
* branch master -> FETCH_HEAD

Desktop super$ git add .
Desktop super$ git commit -m "change"
Desktop super$ git push

Latest podspec

{
    "name": "NSDictionary+expanded",
    "version": "0.0.7",
    "summary": "Yes ,this is my Summary is A short description of KNavigate.",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "description": "this is the description you know ? yes ,so ,what do you want to do?Yes you are right",
    "homepage": "https://github.com/yangyueguang/MyCocoaPods",
    "license": "MIT",
    "authors": {
        "yangyueguang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yangyueguang/MyCocoaPods.git",
        "tag": "0.0.7"
    },
    "source_files": "Category/NSDictionary+expanded.{h,m}"
}

Pin It on Pinterest

Share This