目录
配置DemoSDK.podspec
Pod::Spec.new do |s|
s.name = 'DemoSDK'
s.version = '1.0.1'
s.summary = 'Demo SDK'
s.homepage = 'https://dev-git.xxx-ios.git'
s.license = 'MIT'
s.authors = {'xxx' => 'xxx@xxx.com'}
s.platform = :ios, '11.0'
s.source = {:git => 'https://dev-git.xxx-ios.git', :tag => s.version}
s.source_files = 'xxx/*/.{h,m}'
s.resource = 'xxx/xxx.bundle'
s.requires_arc = true
end
将远程仓库打tag,版本号与配置文件一致1.0.1
终端输入
1:注册,收到邮件,激活
pod trunk register xxx@xxx.com 'xxx' --description='macbook pro'
2:安装ffi
gem install ffi --version 1.13.1 --user-install
3:上传
pod trunk push --allow-warnings DemoSDK.podspec
使用
pod 'DemoSDK', '~> 1.0.1'
pod repo update
pod install