From 4359329143036a5195936e54aad1b8c6fe441ea3 Mon Sep 17 00:00:00 2001 From: Rawad H Date: Mon, 19 Jun 2023 18:27:20 -0700 Subject: [PATCH] Disable c++ static destructors on exit that is causing crashes within the destructors on app termination (#26772) --- .../darwin/MatterTvCastingBridge/chip_xcode_build_connector.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/tv-casting-app/darwin/MatterTvCastingBridge/chip_xcode_build_connector.sh b/examples/tv-casting-app/darwin/MatterTvCastingBridge/chip_xcode_build_connector.sh index 3d0f82ed0d2e39..ed8d6af434f89e 100755 --- a/examples/tv-casting-app/darwin/MatterTvCastingBridge/chip_xcode_build_connector.sh +++ b/examples/tv-casting-app/darwin/MatterTvCastingBridge/chip_xcode_build_connector.sh @@ -91,6 +91,8 @@ done target_cflags+=',"-flto"' } +target_cflags+=',"-fno-c++-static-destructors"' + declare -a args=( 'default_configs_cosmetic=[]' # suppress colorization 'chip_crypto="mbedtls"'