Bug 56837 - MT0109 The assembly Google.Analytics.dll was loaded from a different path than the provided path
Summary: MT0109 The assembly Google.Analytics.dll was loaded from a different path tha...
Status: RESOLVED DUPLICATE of bug 56498
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 10.10 (d15-2)
Hardware: Macintosh Mac OS
: --- major
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-25 13:02 UTC by Nate Cook
Modified: 2017-05-25 13:17 UTC (History)
2 users (show)

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


Attachments
Sample project (12.57 KB, application/zip)
2017-05-25 13:03 UTC, Nate Cook
Details


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:
Status:
RESOLVED DUPLICATE of bug 56498

Description Nate Cook 2017-05-25 13:02:58 UTC
# Steps to reproduce
Create a new native iOS application
Add a nuget package reference to Xamarin.Google.iOS.Analytics (any version--I've reproduced with 3.14.0.7 and 3.17.0.1)
Build

# Expected behavior
No warnings

# Actual behavior
The following warning is produced, with both Xamarin Studio and Visual Studio for Mac:
MTOUCH: Warning MT0109: The assembly 'Google.Analytics.dll' was loaded from a different path than the provided path (provided path: /path/to/project/packages/Xamarin.Google.iOS.Analytics.3.17.0.1/lib/Xamarin.iOS10/Google.Analytics.dll, actual path: /path/to/project/obj/iPhoneSimulator/Debug/XbdMerge/Google.Analytics.dll). (MT0109)

Here is the full call to mtouch:
 /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --cache /Users/ncook/Projects/GoogAnalyticsWarn/GoogAnalyticsWarn/obj/iPhoneSimulator/Debug/device-builds/iphone9.1-10.3/mtouch-cache --sim /Users/ncook/Projects/GoogAnalyticsWarn/GoogAnalyticsWarn/bin/iPhoneSimulator/Debug/device-builds/iphone9.1-10.3/GoogAnalyticsWarn.app --executable GoogAnalyticsWarn --fastdev --debug --nolink --sdkroot /Applications/Xcode.app/Contents/Developer --sdk 10.3 --targetver 10.3 --http-message-handler=HttpClientHandler --abi=x86_64 --symbollist /Users/ncook/Projects/GoogAnalyticsWarn/GoogAnalyticsWarn/obj/iPhoneSimulator/Debug/device-builds/iphone9.1-10.3/mtouch-symbols.list --dsym=no -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Xml.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll -r /Users/ncook/Projects/GoogAnalyticsWarn/GoogAnalyticsWarn/obj/iPhoneSimulator/Debug/XbdMerge/Google.Analytics.dll -r /Users/ncook/Projects/GoogAnalyticsWarn/packages/Xamarin.Google.iOS.Analytics.3.17.0.1/lib/Xamarin.iOS10/Google.Analytics.dll --target-framework Xamarin.iOS,v1.0 /Users/ncook/Projects/GoogAnalyticsWarn/GoogAnalyticsWarn/bin/iPhoneSimulator/Debug/GoogAnalyticsWarn.exe -v -v 
 MTOUCH : warning MT0109: The assembly 'Google.Analytics.dll' was loaded from a different path than the provided path (provided path: /Users/ncook/Projects/GoogAnalyticsWarn/packages/Xamarin.Google.iOS.Analytics.3.17.0.1/lib/Xamarin.iOS10/Google.Analytics.dll, actual path: /Users/ncook/Projects/GoogAnalyticsWarn/GoogAnalyticsWarn/obj/iPhoneSimulator/Debug/XbdMerge/Google.Analytics.dll).

This is a problem that was introduced recently. We've just upgraded from Cycle 9 and the problem did not occur there.

# Supplemental info (logs, images, videos)
A sample project will be attached

# Test environment (full version information)
=== Visual Studio Professional 2017 for Mac ===

Version 7.0.1 (build 24)
Installation UUID: 3234d07d-f7a0-4180-b21d-d2c24ed872f6
Runtime:
	Mono 5.0.1.1 (2017-02/5077205) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 500010001

=== NuGet ===

Version: 4.0.0.2323

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
SDK: /usr/local/share/dotnet/sdk/1.0.0-preview2-003156/Sdks
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.5.4
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: 7.3.1.1 (Visual Studio Professional)
Android SDK: /Users/ncook/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.4 (API level 19)
		5.0 (API level 21)
		5.1 (API level 22)
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.6
SDK Build Tools Version: 25.0.3

Java SDK: /usr
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Apple Developer Tools ===

Xcode 8.3.2 (12175)
Build 8E2002

=== Xamarin.iOS ===

Version: 10.10.0.36 (Visual Studio Professional)
Hash: d2270eec
Branch: d15-2
Build date: 2017-05-22 16:30:53-0400

=== Xamarin.Mac ===

Version: 3.4.0.36 (Visual Studio Professional)

=== Xamarin Inspector ===

Version: 1.2.2
Hash: b71b035
Branch: d15-1
Build date: Fri, 21 Apr 2017 17:57:12 GMT

=== Build Information ===

Release ID: 700010024
Git revision: 7ab1ca2ced6f584e56b7a0d4d321d00775cd95c9
Build date: 2017-05-19 05:44:51-04
Xamarin addins: 08d17158f3365beee5e60f67999e607cce4b3f93
Build lane: monodevelop-lion-d15-2

=== Operating System ===

Mac OS X 10.12.5
Darwin 16.6.0 Darwin Kernel Version 16.6.0
    Fri Apr 14 16:21:16 PDT 2017
    root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
Comment 1 Nate Cook 2017-05-25 13:03:19 UTC
Created attachment 22458 [details]
Sample project
Comment 2 Rolf Bjarne Kvinge [MSFT] 2017-05-25 13:17:45 UTC

*** This bug has been marked as a duplicate of bug 56498 ***