platform :ios, '9.0'
use_frameworks!
project 'ProjectName.project'
source "https://github.com/CocoaPods/Specs.git"
source "https://gitlab.com/CocoaPods/Specs.git"
第三方库
def ThirdPod
pod 'AFNetworking' //使用最新版本
pod 'AFNetworking', '~>0' //使用最新版本
pod 'AFNetworking', '~> 0.1.2' //使用大于等于0.1.2但小于0.2的版本
pod 'AFNetworking', '~>0.1' //使用大于等于0.1但小于1.0的版本
pod 'AFNetworking', '2.0' //只使用2.0版本
pod 'AFNetworking', '= 2.0' //只使用2.0版本
pod 'AFNetworking', '> 2.0' //使用高于2.0的版本
pod 'AFNetworking', '>= 2.0' //使用大于或等于2.0的版本
pod 'AFNetworking', '< 2.0' //使用小于2.0的版本
pod 'AFNetworking', '<= 2.0' //使用小于或等于2.0的版本
sysource = "git@gitlab.xxxxx.com:ios-public/YYPrivateSpecs.git"
pod 'lottie-ios', '2.5.3', :source => sysource
pod 'AFNetworking', :path => 'third-libs/AFNetworking/AFNetworking.podspec'
pod 'AFNetworking', :path => '../AFNetworking'
pod 'AFNetworking', :git => 'https://gitee.com/whp/AFNetworking.git', :tag => '0.49'
pod 'AFNetworking', :git => 'https://gitee.com/whp/AFNetworking.git', :branch => 'dev'
end
基础库
def BasePod
sysource = "git@gitlab.xxx.com:ios-public/XXPrivateSpecs.git"
pod 'HTTPNetwork', '1.2.2'
pod 'YYBasicKit', :git => 'git@gitlab-pri.uu.xxxx.com:ios-public/xxx-base/sybasickit.git' , :tag => '1.1.0.73'
pod 'YYAthena', :git => 'git@gitlab-pri.sy.soyoung.com:soyoungios-public/soyoung-base/syathena.git' , :branch => 'dev_8.17.1_whp'
pod 'OOMDetector', '1.3.3', :configurations => ['Debug']
pod 'YYLeaksFinder', '1.0.3', :configurations => ['Debug', 'Release_eye']
pod 'YYAppUIKit', :path => '../YYAppUIKit/YYAppUIKit.podspec'
pod 'YYGeneralKit', :path => '../YYGeneralKit/YYGeneralKit.podspec'
pod 'YYAppKit', :podspec => 'http://gitlab.yy.com/ios-public/sykit/YYAppKit/raw/master/YYAppKit.podspec'
pod 'YYAppKit', :git => 'git@gitlab.yy.com:ios-public/sykit/YYAppKit.git', :commit => 'd057a15f17dfd4b459465e4b882129625c5cdadd'
end
target 'ProjectName' do
inhibit_all_warnings!
第三方库
ThirdPod
基础库
BasePod
end
target 'ProjectName-dev' do
inhibit_all_warnings!
第三方库
ThirdPod
基础库
BasePod
end
网友评论