@@ -45,11 +45,11 @@ def all_pods
45
45
pod "SnapKit" , "5.0.1"
46
46
47
47
# Firebase
48
- pod "Firebase/Core" , "8.9.1 "
49
- pod "Firebase/Messaging" , "8.9.1 "
50
- pod "Firebase/Analytics" , "8.9.1 "
51
- pod "Firebase/Crashlytics" , "8.9.1 "
52
- pod "Firebase/RemoteConfig" , "8.9.1 "
48
+ pod "Firebase/Core" , "10.15.0 "
49
+ pod "Firebase/Messaging" , "10.15.0 "
50
+ pod "Firebase/Analytics" , "10.15.0 "
51
+ pod "Firebase/Crashlytics" , "10.15.0 "
52
+ pod "Firebase/RemoteConfig" , "10.15.0 "
53
53
54
54
pod "YandexMobileMetrica/Dynamic" , "3.17.0"
55
55
pod "Amplitude" , "8.5.0"
@@ -102,6 +102,22 @@ target "Stepic" do
102
102
end
103
103
104
104
post_install do |installer |
105
+ # Fix Xcode 15 Error 'DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead'
106
+ installer . aggregate_targets . each do |target |
107
+ target . xcconfigs . each do |variant , xcconfig |
108
+ xcconfig_path = target . client_root + target . xcconfig_relative_path ( variant )
109
+ IO . write ( xcconfig_path , IO . read ( xcconfig_path ) . gsub ( "DT_TOOLCHAIN_DIR" , "TOOLCHAIN_DIR" ) )
110
+ end
111
+ end
112
+ installer . pods_project . targets . each do |target |
113
+ target . build_configurations . each do |config |
114
+ if config . base_configuration_reference . is_a? Xcodeproj ::Project ::Object ::PBXFileReference
115
+ xcconfig_path = config . base_configuration_reference . real_path
116
+ IO . write ( xcconfig_path , IO . read ( xcconfig_path ) . gsub ( "DT_TOOLCHAIN_DIR" , "TOOLCHAIN_DIR" ) )
117
+ end
118
+ end
119
+ end
120
+
105
121
installer . pods_project . targets . each do |target |
106
122
target . build_configurations . each do |config |
107
123
if config . build_settings [ "IPHONEOS_DEPLOYMENT_TARGET" ] . to_f < 12.0
0 commit comments