From 1790828b013ef50581a2a2cf96f7dab21b4b3538 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 1 Oct 2021 19:01:10 +0400 Subject: [PATCH] Dump symbols from the binary instead of dSYM. For some reason dump_syms from dSYM now fails with an error: Telegram.app.dSYM/Contents/Resources/DWARF/Telegram: the section '__text' in segment '__TEXT' claims its contents lie outside the segment's contents --- Telegram/build/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/build/build.sh b/Telegram/build/build.sh index 1a179ddb1..1c9467074 100755 --- a/Telegram/build/build.sh +++ b/Telegram/build/build.sh @@ -238,7 +238,7 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "macstore" ]; then fi echo "Dumping debug symbols.." - "$HomePath/../../Libraries/breakpad/src/tools/mac/dump_syms/build/Release/dump_syms" "$ReleasePath/$BinaryName.app.dSYM" > "$ReleasePath/$BinaryName.sym" 2>/dev/null + "$HomePath/../../Libraries/breakpad/src/tools/mac/dump_syms/build/Release/dump_syms" "$ReleasePath/$BinaryName.app/Contents/MacOS/Telegram" > "$ReleasePath/$BinaryName.sym" 2>/dev/null echo "Done!" echo "Stripping the executable.."