-
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathPodfile
More file actions
60 lines (57 loc) · 1.92 KB
/
Copy pathPodfile
File metadata and controls
60 lines (57 loc) · 1.92 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
source 'https://cdn.cocoapods.org/'
platform:ios,'15.0'
inhibit_all_warnings!
use_modular_headers!
def pods
pod 'SnapKit'
pod 'Alamofire'
pod 'ObjectMapper'
pod 'AlamofireObjectMapper'
pod 'Ji'
pod 'DrawerController'
pod 'Kingfisher', '~> 7.11.0'
pod 'KeychainSwift'
pod 'KVOController'
pod 'YYText'
pod 'FXBlurView'
pod 'SVProgressHUD'
pod 'MJRefresh', '~> 3.1.15.7'
pod 'CXSwipeGestureRecognizer'
pod '1PasswordExtension'
pod 'Shimmer'
pod 'FDFullscreenPopGesture'
pod 'Moya/RxSwift'
pod 'SwiftyJSON', '~> 4.3'
end
target 'V2ex-Swift' do
pods
post_install do |installer|
installer.pods_project.targets.each do |target|
# 将三方库的Deploy版本号都提到iOS11,隐藏编译过程中相关的Deprecated警告及其他警告
target.build_configurations.each do |config|
config.build_settings['GCC_WARN_INHIBIT_ALL_WARNINGS'] = 'YES'
# https://stackoverflow.com/questions/63056454/xcode-12-deployment-target-warnings-when-using-cocoapods
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 15.0
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
end
end
if target.name == 'Ji' or target.name == 'Moya' or target.name == 'Result'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
if target.name == 'DrawerController'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
# Xcode 26.6 (Apple clang 21) 起 chained comparison 是默认 error,
# YYTextLayout.m:1508/1510/1516/1518 中招;GCC_WARN_INHIBIT_ALL_WARNINGS 压不住默认 error
if target.name == 'YYText'
target.build_configurations.each do |config|
config.build_settings['OTHER_CFLAGS'] = '$(inherited) -Wno-parentheses'
end
end
end
end
end