From 48198ce4bae059cb939d67b204e764808195a1fb Mon Sep 17 00:00:00 2001 From: Asaf Korem Date: Wed, 20 Mar 2024 15:59:35 +0200 Subject: [PATCH] fix(playground): apply workaround for Xcode 15. See: https://github.com/facebook/react-native/issues/37748#issuecomment-1580589448 --- playground/ios/Podfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playground/ios/Podfile b/playground/ios/Podfile index 92e3eed1b0..57d344ef9d 100644 --- a/playground/ios/Podfile +++ b/playground/ios/Podfile @@ -67,6 +67,14 @@ def __apply_Xcode_15_3_flipper_post_install_workaround(installer) end end +def __apply_Xcode_15_unary_binary_error_workaround(installer) + 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 + target 'playground' do all_pods end