From 9954c14dcb7d8e2b3d21b14e4491559f341b85de Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Fri, 25 Oct 2024 07:01:51 +0100 Subject: [PATCH] chore: fix unary function in example --- example/ios/Podfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example/ios/Podfile b/example/ios/Podfile index 48a52c3..e4c1be6 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -56,5 +56,11 @@ target 'LibsodiumExample' do :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_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 end