both Android and iOS:
When I try to install the AWSSDK.S3 to access Amazon services, I get the following linker error when trying to build iOS:
Failed to resolve "System.Void Amazon.Runtime.Internal.Util.AESEncryptionPutObjectStream::.ctor(System.IO.Stream,System.Byte,System.Byte)" reference from "AWSSDK.Core, Version=188.8.131.52, Culture=neutral, PublicKeyToken=885c28607f98e604"
..Android build has a similar error.
I have the following libraries installed:
this appears to be a bug in AWSSDK.Core, but reporting here, because documentation here:
says to please submit bug report "...If your application only works with -nolink"...which is the case here.
feel free to close if this is an AWS bug not fixable by Xamarin
The issue here is that your application is linking out this item's constructor in the AWSSDK.Core library:
System.Void Amazon.Runtime.Internal.Util.AESEncryptionPutObjectStream::.ctor(System.IO.Stream,System.Byte,System.Byte)" reference from "AWSSDK.Core, Version=184.108.40.206, Culture=neutral, PublicKeyToken=885c28607f98e604"
Now, is this your fault? Not really, it's partially the Linker to blame for being too aggressive, but also that this library probably doesn't preserve it's members and thus the linker links these items out.
I would consider this to be a bug on the AWSSDK.Core end where the maintainer could do a better job preserving the code:
Otherwise you can always mark this as a linkskip item:
For a bit more information about why this happens, check out my blog on this topic:
I am marking this issue as NEEDINFO as we are missing a reproduction project that demonstrates this issue. Although this bug is a little old, we will need that to proceed investigation.
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!