-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPodfile
executable file
·30 lines (25 loc) · 873 Bytes
/
Podfile
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
platform :ios, '13.0'
inhibit_all_warnings!
use_frameworks!
use_modular_headers!
#使用Cocoapods清华源
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
#使用Cocoapods官方源
#source 'https://github.com/CocoaPods/Specs.git'
target 'WYBasisKit' do
pod 'SnapKit'
pod 'Kingfisher'
pod 'Moya'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
end
end
end