From 3f54657e3d09c80256225b641d7a95609c1d736e Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Wed, 23 Oct 2024 16:36:10 -0400 Subject: [PATCH] fix CI build attempt #3 --- ios/Podfile | 9 +++++++++ ios/Podfile.lock | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ios/Podfile b/ios/Podfile index e5fb3de9..fca35ec6 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -45,6 +45,15 @@ target 'Discourse' do :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) + + # fix the "No template named 'unary_function'" error + # see https://stackoverflow.com/questions/77133361/no-template-named-unary-function-in-namespace-std-did-you-mean-unary-fun + # should be fixed in RN 0.72.5+ + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION'] + end + end end # https://stackoverflow.com/questions/78993520/invalid-executable-the-executable-appname-app-frameworks-hermes-framework-herm diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 2b09c1a8..04522aa1 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -617,6 +617,6 @@ SPEC CHECKSUMS: RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8 Yoga: d56980c8914db0b51692f55533409e844b66133c -PODFILE CHECKSUM: 6b385b845e3175e65f2060ab6f1252ee15ecf8f8 +PODFILE CHECKSUM: 1f6fc6885dfec27cdebb42ea12c2f7ea29d3f559 COCOAPODS: 1.15.2