From f7b4efbacd9b70c500b374dd731b43ab468c0f88 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Tue, 26 Apr 2016 18:48:01 -0400 Subject: [PATCH] [linker] Fix debugging of watchOS apps when link all is used. Fixes #40641 Watch apps are inside .dll (not .exe) and needs to be processed differently (e.g. to register their content). The issue was that the debugging symbols were not loaded by that code so it was not part of the .appex for debugging. https://bugzilla.xamarin.com/show_bug.cgi?id=40641 --- tools/linker/MobileResolveMainAssemblyStep.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/linker/MobileResolveMainAssemblyStep.cs b/tools/linker/MobileResolveMainAssemblyStep.cs index 2c28f0e09879..e27913027e38 100644 --- a/tools/linker/MobileResolveMainAssemblyStep.cs +++ b/tools/linker/MobileResolveMainAssemblyStep.cs @@ -27,6 +27,7 @@ protected override void Process () // we have a watch extension which main project is a .dll and we have to tell the // linker where to start (by marking the first, entry method) Context.Resolver.CacheAssembly (assembly); + Context.SafeReadSymbols (assembly); Annotations.Push (assembly);