-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPodfile
More file actions
66 lines (56 loc) · 1.53 KB
/
Podfile
File metadata and controls
66 lines (56 loc) · 1.53 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
platform :ios, '16.0'
target 'XYZOCRKit' do
use_frameworks!
# -----------------
# 自己的库
# -----------------
pod 'SoHow'
pod 'XYZVCX' # 跳转功能
# -----------------
# 第三方依赖
# -----------------
pod 'Disk'
pod 'SwiftyJSON' # , '4.0' 可指定版本
pod 'Alamofire'
pod 'SnapKit'
pod 'CryptoSwift'
# -----------------
# 响应式开发
# -----------------
pod 'RxSwift'
pod 'RxCocoa'
pod 'RxAlamofire'
# -----------------
# OCR / 云服务
# -----------------
# pod "AlibabacloudOcrApi20210707"
# pod "ocr-api-20210707"
# 亚马逊OCR
pod 'AWSCore'
pod 'AWSTextract'
end
post_install do |installer|
# 获取主工程 DEVELOPMENT_TEAM
dev_team = ""
project = installer.aggregate_targets[0].user_project
project.targets.each do |target|
target.build_configurations.each do |config|
if dev_team.empty? && !config.build_settings['DEVELOPMENT_TEAM'].nil?
dev_team = config.build_settings['DEVELOPMENT_TEAM']
end
end
end
# 配置Pods工程的相关设置
installer.pods_project.targets.each do |target|
# 设置开发团队
if target.respond_to?(:product_type) && target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['DEVELOPMENT_TEAM'] = dev_team
end
end
# 统一最低部署版本
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'
end
end
end