Bug 60637 - Build fails with 'Link Framework SDKs Only' due to AWSSDK.CloudWatchLogs package
Summary: Build fails with 'Link Framework SDKs Only' due to AWSSDK.CloudWatchLogs package
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 11.6 (xcode9.2)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2017-11-13 05:08 UTC by Mick Byrne
Modified: 2017-12-18 19:34 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Verbose build output (155.57 KB, text/plain)
2017-11-13 05:08 UTC, Mick Byrne

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Mick Byrne 2017-11-13 05:08:33 UTC
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=, 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
Comment 1 Manuel de la Peña [MSFT] 2017-11-15 11:51:38 UTC

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.

Comment 2 Timothy Risi 2017-12-18 19:34:15 UTC
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!