# specs **Repository Path**: azazie_specs/specs ## Basic Information - **Project Name**: specs - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-21 - **Last Updated**: 2024-11-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LBSpecs ###目录 >1.制作方法 >2.推荐链接 ##制作方法 ###创建Repository 在git上创建私有仓库,命名可参考`LBSpecs` ###本地添加私库文件夹 ``` pod repo add lebbay-specs https://gitee.com/azazie_specs/specs.git ``` ###创建私库本地工程 ``` pod lib create LBEncrypt ``` 私库配置文件可参考如下: ``` # # Be sure to run `pod lib lint LBEncrypt.podspec' to ensure this is a # valid spec before submitting. # # Any lines starting with a # are optional, but their use is encouraged # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| s.name = 'LBEncrypt' s.version = '0.0.1' s.summary = 'A short description of LBEncrypt.' # This description is used to generate tags and improve search results. # * Think: What does it do? Why did you write it? What is the focus? # * Try to keep it short, snappy and to the point. # * Write the description between the DESC delimiters below. # * Finally, don't worry about the indent, CocoaPods strips it! s.description = <<-DESC TODO: Add long description of the pod here. DESC s.homepage = 'https://github.com/408939786@qq.com/LBEncrypt' # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { '408939786@qq.com' => '408939786@qq.com' } s.source = { :git => 'ssh://git@git.netwisdom.cn/apps/LBEncrypt.git', :tag => s.version.to_s } # s.social_media_url = 'https://twitter.com/' s.ios.deployment_target = '8.0' s.subspec 'RSA' do |ss| ss.source_files = 'Encrypt/Classes/RSA/*.{h,m}' ss.public_header_files = 'Encrypt/Classes/RSA/*.h' end s.subspec 'AES' do |ss| ss.source_files = 'Encrypt/Classes/AES/*.{h,m}' ss.public_header_files = 'Encrypt/Classes/AES/*.h' ss.frameworks = 'Security' end s.subspec 'FileHash' do |ss| ss.source_files = 'Encrypt/Classes/FileHash/*.{h,m}' ss.ios.public_header_files = 'Encrypt/Classes/FileHash/*.h' ss.frameworks = 'CoreFoundation' end s.subspec 'Core' do |ss| ss.dependency 'LBEncrypt/FileHash' ss.dependency 'LBEncrypt/AES' ss.dependency 'LBEncrypt/RSA' end end ``` ###提交代码 ``` cd existing-project git init git add --all git commit -m "Initial Commit" git remote add origin ssh://git@git.lebbay.cn/apps/lbencrypt.git git push origin master git tag '0.0.1' git push --tag ``` 其中tag要与podspec中的版本一致。 ###Push podspec 文件 ``` pod repo --verbose --allow-warnings push lebbay-specs /Users/WuShiHai/Documents/WorkSpace/spec/LBEncrypt/LBEncrypt/LBEncrypt.podspec ``` ##链接 [官网文档](https://guides.cocoapods.org/syntax/podspec.html#specification) [使用Cocoapods创建私有podspec](http://www.cocoachina.com/ios/20150228/11206.html) [CocoaPods详解之----制作篇](https://my.oschina.net/u/727843/blog/392784) [Github-README 中展示demo](http://www.jianshu.com/p/75e30889e70a)