Skip to content

Commit

Permalink
Workaround to prevent crash on iOS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoncal committed Jan 2, 2024
1 parent 09e56a8 commit 7a300f1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Configuration/Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MARKETING_VERSION=2023.12
MARKETING_VERSION=2023.12.1
CURRENT_PROJECT_VERSION=2023
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ PLATFORMS
x86_64-darwin-20
x86_64-darwin-21
x86_64-darwin-22
x86_64-darwin-23

DEPENDENCIES
cocoapods
Expand Down
6 changes: 6 additions & 0 deletions HomeAssistant.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6953,6 +6953,8 @@
"\"UIKit\"",
"$(inherited)",
"-fprofile-instr-generate",
"-ld_classic",
"-Wl",
);
PRODUCT_MODULE_NAME = HomeAssistant;
PRODUCT_NAME = "Home Assistant β";
Expand Down Expand Up @@ -7168,6 +7170,8 @@
"\"UIKit\"",
"$(inherited)",
"-fprofile-instr-generate",
"-ld_classic",
"-Wl",
);
PRODUCT_MODULE_NAME = HomeAssistant;
PRODUCT_NAME = "Home Assistant Δ";
Expand Down Expand Up @@ -7210,6 +7214,8 @@
"\"UIKit\"",
"$(inherited)",
"-fprofile-instr-generate",
"-ld_classic",
"-Wl",
);
PRODUCT_MODULE_NAME = HomeAssistant;
PRODUCT_NAME = "Home Assistant";
Expand Down
7 changes: 7 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,14 @@ end

post_install do |installer|
installer.pods_project.targets.each do |target|


target.build_configurations.each do |config|
# Workaround to prevent crash on iOS 12 in Xcode 15
config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)']
config.build_settings['OTHER_LDFLAGS'] << '-Wl'
config.build_settings['OTHER_LDFLAGS'] << '-ld_classic'

config.build_settings['WATCHOS_DEPLOYMENT_TARGET'] = '5.0'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'

Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,6 @@ SPEC CHECKSUMS:
XCGLogger: 1943831ef907df55108b0b18657953f868de973b
ZIPFoundation: d170fa8e270b2a32bef9dcdcabff5b8f1a5deced

PODFILE CHECKSUM: 22fc24cfd665bd31532e7b68cf2aee22abb132b2
PODFILE CHECKSUM: e1c301cb245f519966d14c0d88453997497cdd44

COCOAPODS: 1.13.0

0 comments on commit 7a300f1

Please sign in to comment.