-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathPodfile
More file actions
27 lines (24 loc) · 818 Bytes
/
Podfile
File metadata and controls
27 lines (24 loc) · 818 Bytes
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
use_frameworks!
platform :ios, '11.0'
target 'JXBanner_Example' do
pod 'JXBanner', :path => '../'
# pod 'JXBanner'
pod 'SnapKit'
end
#---hooks---
$iOSVersion = '11.0'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Pod Architectures For Simulators
# Needed for building for simulator on M1 Macs
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
# 避免pod中bundle target need sign
config.build_settings['CODE_SIGN_IDENTITY'] = ''
# Hook Pod target deployment version for xcode13
if Gem::Version.new($iOSVersion) > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
end
end
end
end