source 'https://github.com/CocoaPods/Specs.git'
|
#source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
|
#source 'https://cdn.cocoapods.org/'
|
source 'http://repo.baichuan-ios.taobao.com/baichuanSDK/AliBCSpecs.git'
|
platform :ios, ‘9.0’
|
install! 'cocoapods', :disable_input_output_paths => true
|
use_frameworks!
|
#inhibit_all_warnings!
|
target 'fanliquan' do
|
pod 'SVProgressHUD'
|
pod 'AFNetworking','~>3.0'
|
pod 'YYWebImage'
|
pod 'YYModel'
|
pod 'YYImage/WebP'
|
pod 'YYText'
|
pod 'MBProgressHUD'
|
pod 'UICollectionViewLeftAlignedLayout'
|
pod 'Masonry'
|
pod 'IQKeyboardManager'
|
pod 'SDWebImage', '~> 5.1.1'
|
|
pod 'AlibcTradeSDK','4.0.1.6'
|
pod 'AliAuthSDK','1.1.0.41-bc'
|
pod 'mtopSDK','3.0.0.3-BC'
|
pod 'securityGuard','5.4.191'
|
pod 'AliLinkPartnerSDK','4.0.0.24'
|
pod 'BCUserTrack','5.2.0.16-appkeys'
|
pod 'UTDID','1.1.0.16'
|
pod 'WindVane','8.5.0.46-bc11'
|
|
pod 'ReactiveCocoa', :git => 'https://github.com/zhao0/ReactiveCocoa.git', :tag => '2.5.2'
|
pod 'SDAutoLayout'
|
pod 'Toast'
|
pod 'SAMKeychain'
|
pod 'TYSnapshotScroll'
|
|
pod 'GPUImage'
|
pod 'CRBoxInputView', '1.0.1'
|
pod 'MJRefresh'
|
|
pod 'UICountingLabel'
|
pod 'TZImagePickerController', '3.2.9'
|
pod 'mob_sharesdk'
|
pod 'mob_sharesdk/ShareSDKUI'
|
pod 'mob_sharesdk/ShareSDKPlatforms/QQ'
|
pod 'mob_sharesdk/ShareSDKPlatforms/SinaWeibo'
|
pod 'mob_sharesdk/ShareSDKPlatforms/WeChat'
|
|
pod 'UMCAnalytics'
|
pod 'UMCCommon'
|
pod 'UMCShare/UI'
|
pod 'UMCShare/Social/ReducedWeChat'
|
end
|
|
def find_and_replace(dir, findstr, replacestr)
|
Dir[dir].each do |name|
|
text = File.read(name)
|
replace = text.gsub(findstr, replacestr)
|
if text != replace
|
puts "Fix: " + name
|
File.open(name, "w") { |file| file.puts replace }
|
STDOUT.flush
|
end
|
end
|
Dir[dir + '*/'].each(&method(:find_and_replace))
|
end
|
|
|
post_install do |installer_representation|
|
# 省略
|
# Xcode14问题补丁,升级后可以移除:https://github.com/CocoaPods/CocoaPods/pull/11828
|
find_and_replace("./Pods/Target Support Files/Pods-projectName/Pods-projectName-frameworks.sh", 'source="$(readlink "${source}")"', 'source="$(readlink -f "${source}")"')
|
end
|
|
|
post_install do |installer|
|
installer.pods_project.targets.each do |target|
|
target.build_configurations.each do |config|
|
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
|
end
|
end
|
end
|