From dbb566ac7c1adeeed9eb254acb8595f7ba4e03f4 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Tue, 17 Oct 2023 18:23:11 +0800 Subject: [PATCH] fix curl 7.4.0 CoreServices framework build bug for mac --- config/lib.json | 1 + src/SPC/builder/macos/library/curl.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/config/lib.json b/config/lib.json index 63aa44a4..73f280ab 100644 --- a/config/lib.json +++ b/config/lib.json @@ -63,6 +63,7 @@ ], "frameworks": [ "CoreFoundation", + "CoreServices", "SystemConfiguration" ] }, diff --git a/src/SPC/builder/macos/library/curl.php b/src/SPC/builder/macos/library/curl.php index c590c003..3a24f31a 100644 --- a/src/SPC/builder/macos/library/curl.php +++ b/src/SPC/builder/macos/library/curl.php @@ -44,6 +44,11 @@ class curl extends MacOSLibraryBase '/NOT SYSTEMCONFIGURATION_FRAMEWORK/m', 'FALSE' ); + FileSystem::replaceFileRegex( + SOURCE_PATH . '/curl/CMakeLists.txt', + '/NOT CORESERVICES_FRAMEWORK/m', + 'FALSE' + ); return true; } }