-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
Podfile
83 lines (66 loc) · 2.08 KB
/
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
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
workspace 'StrongBox'
use_frameworks!
abstract_target 'common-mac' do
project 'macbox/MacBox.xcodeproj'
platform :osx, '12.0'
target 'Mac-Freemium' do
pod 'ObjectiveDropboxOfficial'
end
target 'Mac-Pro' do
pod 'ObjectiveDropboxOfficial'
end
target 'Mac-Unified-Freemium' do
pod 'ObjectiveDropboxOfficial'
end
target 'Mac-Unified-Pro' do
pod 'ObjectiveDropboxOfficial'
end
target 'Mac-Business' do
pod 'ObjectiveDropboxOfficial'
end
end
abstract_target 'common-ios' do
project 'Strongbox.xcodeproj'
platform :ios, '15.0'
target 'Strongbox-iOS' do
pod 'ObjectiveDropboxOfficial'
end
target 'Strongbox-iOS-Pro' do
pod 'ObjectiveDropboxOfficial'
end
target 'Strongbox-iOS-Business' do
pod 'ObjectiveDropboxOfficial'
end
end
# XCode 14 issue...
# From: https://github.com/fastlane/fastlane/issues/20670
# Also: https://support.bitrise.io/hc/en-us/articles/4406551563409-CocoaPods-frameworks-signing-issue
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
# Fix XCode 14.3 Issue
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
# Fix XCode 15 issues
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
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