You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Linked Away" exception when using CurrentPrincipal with SDK linking enabled #7321
This older blog post from 2011 has details on where "Linked Away" comes from.
But in short:
There are parts of the base class library that use bits that the runtime on iOS does not support
Global settings like this tend to use remoting, which the runtime does not have enabled.
There is an optimization that we enable during linking which replaces these code paths (remoting, etc) with "Linked Away"
You can work around this by disabling that optimization with --nolinkaway additional mtouch argument.
However, I believe that this used to work. It may be a regression due to runtime changes (we are now calling more remoting code that we did before when using this API?)
Looks like the old MONOTOUCH (or MOBILE) code paths were removed from mono and the current code goes thru domain/remoting code that we do not include in our runtime/BCL by default.
Activity
chamons commentedon Oct 28, 2019
This older blog post from 2011 has details on where "Linked Away" comes from.
But in short:
You can work around this by disabling that optimization with
--nolinkawayadditional mtouch argument.However, I believe that this used to work. It may be a regression due to runtime changes (we are now calling more remoting code that we did before when using this API?)
spouliot commentedon Nov 27, 2019
Looks like the old MONOTOUCH (or MOBILE) code paths were removed from mono and the current code goes thru domain/remoting code that we do not include in our runtime/BCL by default.
spouliot commentedon Nov 27, 2019
likely worked before mono/mono@d45fb4e got merged
[linker] Fix "Linked Away" exceptions with Thread.CurrentPrincipal. Fix
[linker] Fix "Linked Away" exceptions with Thread.CurrentPrincipal. Fix