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