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
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.
xamarin#7321
Keep 'CallContextSecurityData' around since it's quite small (and the
normal linker logic will be able to deal with it if unused) and allows
the use of `Thread.CurrentPrincipal`
Also add unit test.
Fixxamarin#7321
#7321 (#7510)
Keep 'CallContextSecurityData' around since it's quite small (and the
normal linker logic will be able to deal with it if unused) and allows
the use of `Thread.CurrentPrincipal`
Also add unit test.
Fix#7321
ghost
locked as resolved and limited conversation to collaborators
May 1, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugIf an issue is a bug or a pull request a bug fixiOSIssues affecting iOS
Steps to Reproduce
Expected Behavior
Linked and non-linked to behave the same
Actual Behavior
Different behavior
Environment
https://gist.github.com/chamons/fd0e35cb9262e2ed0f4762f058e4f9ca
Example Project (If Possible)
CurrentPrincipalCrash.zip
Workaround
Add
--nolinkaway
to additional mtouch argumentsThe text was updated successfully, but these errors were encountered: