Bug 56289 - Archive bug : MT2001 Could not link assemblies (MT2001)
Summary: Archive bug : MT2001 Could not link assemblies (MT2001)
Status: RESOLVED DUPLICATE of bug 56281
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 10.10 (d15-2)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on: 53805
Blocks:
  Show dependency tree
 
Reported: 2017-05-12 14:29 UTC by Bodin-Ripert
Modified: 2017-08-08 14:30 UTC (History)
9 users (show)

Tags: 15.2R
Is this bug a regression?: Yes
Last known good build:

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 56281

Description Bodin-Ripert 2017-05-12 14:29:45 UTC
I have no errors when I debug my application. But when I want to archive it I get this error :

MTOUCH: error MT2001: Could not link assemblies.
			Method: `System.String UEFAStaff.SocialEvents::get_SubEvent()`
			Assembly: `UEFAStaff, Version=1.0.6341.27944, Culture=neutral, PublicKeyToken=null`
		Reason: Value cannot be null.
		Parameter name: instruction
			Value cannot be null.
		Parameter name: instruction
	Task "MTouch" execution -- FAILED
	Done building target "_CompileToNative" in project "/Users/nbodinripert/Projects/UEFA Staff/uefa-staff/iOS/UEFAStaff.iOS.csproj".-- FAILED
	
Done building project "/Users/nbodinripert/Projects/UEFA Staff/uefa-staff/iOS/UEFAStaff.iOS.csproj".-- FAILED

Build FAILED.

I make sure the release mode is activated, the bundle and the provisioning profile match and the selected platform is an iPhone.
Comment 1 Waqas Yousuf 2017-05-12 15:59:23 UTC
The App was building perfectly fine with Link to SDK option. I just got the update of xamarin studio and xamarin ios on my mac and after that, i am getting following, not able to make a release build now:

MTOUCH: error MT2001: Could not link assemblies.
			Method: `System.String TSDRental.Core.Helpers.Settings::get_HomeURL()`
			Assembly: `TSDRental.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null`
		Reason: Value cannot be null.
		Parameter name: instruction
			Value cannot be null.
		Parameter name: instruction
	Task "MTouch" execution -- FAILED

There is something wrong after taking the update.
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2017-05-12 18:08:06 UTC

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