Skip to content

Commit d535b58

Browse files
authored
Bump Firebase from 8.9.1 to 10.15.0 (#1174)
1 parent aa30514 commit d535b58

File tree

3 files changed

+179
-135
lines changed

3 files changed

+179
-135
lines changed

Podfile

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def all_pods
4545
pod "SnapKit", "5.0.1"
4646

4747
# 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"
5353

5454
pod "YandexMobileMetrica/Dynamic", "3.17.0"
5555
pod "Amplitude", "8.5.0"
@@ -102,6 +102,22 @@ target "Stepic" do
102102
end
103103

104104
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+
105121
installer.pods_project.targets.each do |target|
106122
target.build_configurations.each do |config|
107123
if config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"].to_f < 12.0

0 commit comments

Comments
 (0)