Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 25660 [details]
Verbose build output
We're attempting to do a release build of a Xamarin iOS app. When using 'Link Framework SDKs Only' for the Release configuration and we get an error:
/Projects/Fluker Post/Xplat/iOS/MTOUCH: Error MT2101: Can't resolve the reference 'System.Void Amazon.CloudWatchLogs.AmazonCloudWatchLogsClient::.ctor(Amazon.RegionEndpoint)', referenced from the method 'Serilog.LoggerConfiguration Serilog.Sinks.AwsCloudWatch.AwsCloudWatchConfigurationExtension::AmazonCloudWatch(Serilog.Configuration.LoggerSinkConfiguration,System.String,System.String,System.String,Serilog.Sinks.AwsCloudWatch.ILogEventRenderer,Serilog.Events.LogEventLevel,System.Int32,System.Nullable`1<System.TimeSpan>,System.Boolean)' in 'AWSSDK.CloudWatchLogs, Version=184.108.40.206, Culture=neutral, PublicKeyToken=885c28607f98e604'. (MT2101) (iOS)
So following your hints at https://developer.xamarin.com/guides/ios/troubleshooting/mtouch-errors/#MT2101, I'm submitting a bug report with full verbosity enabled.
Just for context, the we're using the popular Serilog package to handle logging in our app. This allows logs to be submitted to AWS' CloudWatchLogs service. You'll see that I tried to exclude the AWSSDK.CloudWatchLogs assembly from the linking process too in my mtouch arguments, but this didn't seem to help.
The build output is included as an attachment. The DLL that's causing this issue comes from the AWSSDK.CloudWatchLogs nuget package (version 220.127.116.11).
I'm not familiar with the package in question. Could you please provide a small test application that shows the usage of the package and that reproduces the issue? A small single window iOS application that uses the method you mention would be enough.
I would also appreciate if you could provide you full build env information which you can find in the About Visual Studio dialog. That way we can pin point the exact environment in order to reproduce the issue.
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!