Podfile
4.5 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
#source 'https://github.com/CocoaPods/Specs.git'
source 'https://cdn.cocoapods.org'
source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git'
source 'http://bj.gitlab.cnlive.com/DSIOSTeam/DSSpecRepos.git'
source 'https://github.com/volcengine/volcengine-specs.git'
use_frameworks!
target 'metaCode' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for metaCode
#网络请求基础库
pod 'AFNetworking'
#基础请求组件库
pod 'CNLiveRequestBastKit'
#键盘管理库
pod 'IQKeyboardManagerSwift'
#布局文件
pod 'SnapKit'
#刷新组件
pod 'MJRefresh'
#加载框
pod 'MBProgressHUD'
#空白占位
pod 'EmptyDataSet-Swift'
#模型转换工具
pod 'HandyJSON'
#图片视频选择器
pod 'HXPHPicker'
#七牛
pod 'Qiniu'
#支付组件
pod 'CNLivePayCostModule'
#加载GIF
pod 'SwiftGifOrigin', '~> 1.7.0'
#数据库存储
#pod 'WCDB.swift'
#占位按钮
pod 'APButton'
#分类滚动切换视图
pod 'JXSegmentedView', :git => 'https://gitee.com/mirrors/JXSegmentedView.git'
pod 'JXPagingView/Paging'
#轮播图
pod 'FSPagerView', '0.8.3'
#pod 'SDCycleScrollView', '~> 1.82'
pod 'BKCycleScrollView'
#播放器
pod 'ZFPlayer', :git => 'https://gitee.com/mirrors/ZFPlayer.git'
pod 'ZFPlayer/ControlView', :git => 'https://gitee.com/mirrors/ZFPlayer.git'
pod 'ZFPlayer/AVPlayer', :git => 'https://gitee.com/mirrors/ZFPlayer.git'
pod 'ZFPlayer/ijkplayer', :git => 'https://gitee.com/mirrors/ZFPlayer.git'
#分享
pod 'CNLiveShareToolKit'
#网家家输入组件
pod 'CNLiveCustomUI/CNLiveContentToolTextView'
#业务工具库
pod 'CNLiveBusinessTools'
#图片浏览器
pod 'SKPhotoBrowser', :git => 'https://gitee.com/mirrors/SKPhotoBrowser.git'
#图片视频混合浏览器
pod 'JFHeroBrowser'
#视频播放器
pod 'PLPlayerKit'
#UI框架
# pod 'QMUIKit'
pod 'YYWebImage', :git => 'https://gitee.com/mirrors/YYWebImage.git'
#网页交互
pod 'WebViewJavascriptBridge'
#数据库
pod 'FMDB'
#火山APM监控
pod 'RangersAPM', '3.9.2', :subspecs => [
'Crash',
'WatchDog',
'OOM',
'LAG',
'UserException',
'Monitors',
'UITrackers',
'Hybrid',
'MemoryGraph',
'NetworkPro',
'EventMonitor',
'SessionTracker',
'APMLog',
'CrashProtector',
'CPUException',
'MetricKit',
'Disk',
'GWPASan',
'Coredump',
'CloudCommand',
'CN' #必须引入
]
#依赖三方私有库,如果里面有.a的时候加上这个
pre_install do |installer| Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
#依赖三方私有库,如果里面有.a的时候加上这个
pre_install do |installer| Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
############################################ #删除WebViewJavascriptBridge中的WebViewJavascriptBridge.h和WebViewJavascriptBridge.m文件
dir_web = File.join(installer.sandbox.pod_dir('WebViewJavascriptBridge'), 'WebViewJavascriptBridge')
Dir.foreach(dir_web) {|x|
real_path = File.join(dir_web, x)
if (!File.directory?(real_path) && File.exists?(real_path))
if(x == 'WebViewJavascriptBridge.h' || x == 'WebViewJavascriptBridge.m')
File.delete(real_path)
end
end
}
#删除WebViewJavascriptBridge中的WebViewJavascriptBridge.h和WebViewJavascriptBridge.m文件
#################################################
end
# target 'metaCodeTests' do
# inherit! :search_paths
# # Pods for testing
# end
#
# target 'metaCodeUITests' do
# # Pods for testing
# end
end
#解决第三方最低版本过低,Xcode14.3 异常了arc文件 ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
#clang: error: linker command failed with exit code 1 (use -v to see invocation)
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end