[msbuild] Disable stripping symbols by default for Debug builds (#20308)

Fixes https://github.com/xamarin/xamarin-macios/issues/20235
This commit is contained in:
Haritha Mohan 2024-03-18 08:13:47 -07:00 коммит произвёл GitHub
Родитель aa0fc91ce5
Коммит 20ea4a457f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -21,6 +21,7 @@ There are a number of properties that are contingent upon the configuration sett
|-------------------------- |------------------- |--------------------------------------- |
| CodesignDisableTimestamp | true | |
| DebuggerSupport | true | |
| NoSymbolStrip | true | |
| RuntimeIdentifiers | maccatalyst-x64 | TargetFramework == netx.x-maccatalyst |
| RuntimeIdentifiers | osx-x64 | TargetFramework == netx.x-macos |
| UseSystemResourceKeys | false | |

Просмотреть файл

@ -238,6 +238,8 @@ Copyright (C) 2020 Microsoft. All rights reserved.
<!-- Xamarin.Mac never had an equivalent for MtouchNoSymbolStrip and was never stripped, except when using NativeAOT -> true -->
<!-- default to 'false' -->
<NoSymbolStrip Condition="'$(NoSymbolStrip)' == '' And '$(_PlatformName)' != 'macOS'">$(MtouchNoSymbolStrip)</NoSymbolStrip>
<!-- Disable stripping for Debug builds by default -->
<NoSymbolStrip Condition="'$(NoSymbolStrip)' == '' And '$(Configuration)' == 'Debug'">true</NoSymbolStrip>
<NoSymbolStrip Condition="'$(NoSymbolStrip)' == '' And ('$(_PlatformName)' == 'macOS' Or '$(_PlatformName)' == 'MacCatalyst') And '$(_UseNativeAot)' != 'true'">true</NoSymbolStrip>
<!-- Disable stripping for simulator builds by default -->
<NoSymbolStrip Condition="'$(NoSymbolStrip)' == '' And ('$(_PlatformName)' == 'iOS' Or '$(_PlatformName)' == 'tvOS' Or '$(_PlatformName)' == 'watchOS') And '$(ComputedPlatform)' != 'iPhone'">true</NoSymbolStrip>