fix (#1232)

Matthew Fosse committed Feb 23, 2024 at 16:50 UTC 5b1f17c1fbcfbf3b4989421779acbfafb5269f05
1 file changed +16
macos/Podfile
+16
@@ -41,4 +41,20 @@ post_install do |installer|
41 config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '12.0'
42 end
43 end
44 +
45 + installer.aggregate_targets.each do |target|
46 + target.xcconfigs.each do |variant, xcconfig|
47 + xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
48 + IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
49 + end
50 + end
51 +
52 + installer.pods_project.targets.each do |target|
53 + target.build_configurations.each do |config|
54 + if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
55 + xcconfig_path = config.base_configuration_reference.real_path
56 + IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
57 + end
58 + end
59 + end
60 end