Skip to content

Commit 5c89af1

Browse files
committed
Update Podfiles to work with Xcode 15
1 parent cd482b6 commit 5c89af1

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

ios/Podfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ post_install do |installer|
5353
target.build_configurations.each do |config|
5454
#config.build_settings['ENABLE_BITCODE'] = 'NO'
5555
config.build_settings[deployment_target_key] = minimum_deployment_target
56-
#config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
56+
# https://stackoverflow.com/a/77142190
57+
xcconfig_path = config.base_configuration_reference.real_path
58+
xcconfig = File.read(xcconfig_path)
59+
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
60+
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
5761
end
5862
end
5963
end

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@ SPEC CHECKSUMS:
145145
PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef
146146
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c
147147

148-
PODFILE CHECKSUM: dab9effacaa0f55bd7cb654850c5d77a50bb4ca1
148+
PODFILE CHECKSUM: d917d8949c4799edb1ff5b2ec63705a1ec2d325f
149149

150150
COCOAPODS: 1.12.1

macos/Podfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ post_install do |installer|
5454
flutter_additional_macos_build_settings(target)
5555
target.build_configurations.each do |config|
5656
config.build_settings[deployment_target_key] = minimum_deployment_target
57+
# https://stackoverflow.com/a/77142190
58+
xcconfig_path = config.base_configuration_reference.real_path
59+
xcconfig = File.read(xcconfig_path)
60+
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
61+
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
5762
end
5863
end
5964
end

macos/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@ SPEC CHECKSUMS:
132132
PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef
133133
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c
134134

135-
PODFILE CHECKSUM: fb90be0dc01e76c332e93d62b285815e265b39e0
135+
PODFILE CHECKSUM: 5ee51d19d6f83e130d7f1f4d8ecbfe714408529a
136136

137137
COCOAPODS: 1.12.1

macos/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
isa = PBXProject;
264264
attributes = {
265265
LastSwiftUpdateCheck = 0920;
266-
LastUpgradeCheck = 1300;
266+
LastUpgradeCheck = 1430;
267267
ORGANIZATIONNAME = "";
268268
TargetAttributes = {
269269
331C80D4294CF70F00263BE5 = {

macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1430"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)