developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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