Bug 52757 - error MT1001 if assembly name doesn't match project name
Summary: error MT1001 if assembly name doesn't match project name
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.3
Assignee: Emanuel
URL:
: 55535 ()
Depends on:
Blocks:
 
Reported: 2017-02-24 16:56 UTC by mfulker
Modified: 2017-10-08 21:50 UTC (History)
10 users (show)

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


Attachments
solution that shows iPad deployment error (7.30 KB, application/x-zip-compressed)
2017-02-24 16:56 UTC, mfulker
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 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:
VERIFIED FIXED

Description mfulker 2017-02-24 16:56:25 UTC
Created attachment 19951 [details]
solution that shows iPad deployment error

versions:
Visual Studio 2015 version 14.0.25431.01 Update 3
VS Xamarin version 4.3.0.784 (73f58d6)
Xamarin Studio version on mac: 6.2 (build 1821)

steps:
Make sure physical iOS device is connected to mac.
Open attached solution in VS.
Set build configuration to Debug + iPhone (not iPhoneSimulator) and select the physical device.
Build solution.
Right-click project -> Deploy.

problem:
Rather than deploy, visual studio xamarin output shows error: 

"Deploy failed. The app 'ThisIsMyAssemblyName' could not be deployed to the device 'MyIpadName'. Error: error MT1001: Could not find an application at the specified directory: /Users/myusername/Library/Caches/Xamarin/mtbs/builds/ThisIsMyAssemblyName/8d5c8bd4234f32e06150f084081f33f2/bin/iPhone/Debug/ThisIsMyAssemblyName.app "

workaround:
The error goes away and deploy succeeds if Assembly Name in the project settings is changed to "ThisIsMyProjectName".
Comment 1 mfulker 2017-02-24 17:03:45 UTC
more version number info if it matters:
VS Xamarin.iOS version 10.4.0.123 (35d1ccd)

Also: The solution deploys just fine on a PC + mac with these older versions:
VS Xamarin version 4.2.1.64 (872717c)
VS Xamarin.iOS version 10.2.1.5 (44931ae)
Xamarin Studio version on mac: 6.1.2 (build 44)
Comment 2 Emanuel 2017-03-10 15:38:55 UTC
Moving this bug to 15.2 for proper investigation.

Thanks for reporting!
Comment 3 Rulon 2017-03-14 09:35:14 UTC
I've got this problem too. 

Xamarin   4.3.0.784 (73f58d6)
Xamarin.iOS   10.4.0.123 (35d1ccd)
Xamarin Studio version on mac: 6.2 (build 1821)
Comment 4 Emanuel 2017-05-22 17:31:46 UTC
*** Bug 55535 has been marked as a duplicate of this bug. ***
Comment 5 xamarin-release-manager 2017-05-22 18:53:29 UTC
Fixed in version 4.6.0.116 (master)

Author: Emanuel
Commit: 61a46b82616b95a791afc35ac3821fef378886bd (xamarin/XamarinVS)
Comment 8 Francesco Colombo 2017-08-12 10:36:22 UTC
Sorry for bothering you, I'm still having this isse. 

#workaround
It works if I change the assembly name to be same as the project name.

#--- My current configuration -----

Microsoft Visual Studio Professional 2017 
Version 15.2 (26430.16) Release
VisualStudio.15.Release/15.2.0+26430.16
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Professional

Visual Basic 2017   00369-60000-00001-AA729
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA729
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA729
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA729
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.6.00404.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30503.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50303.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30209.0
Azure App Service Tools v3.0.0

Common Azure Tools   1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

JetBrains ReSharper Ultimate 2017.1.3    Build 108.0.20170613.154143
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   4.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

TypeScript   2.2.2.0
TypeScript tools for Visual Studio

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake

Visual Studio Tools for Universal Windows Apps   15.0.26430.06
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

WiX Toolset Visual Studio Extension   0.9.21.62588
WiX Toolset Visual Studio Extension version 0.9.21.62588
Copyright (c) .NET Foundation and contributors. All rights reserved.

Xamarin   4.5.0.486 (fec6f88)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.3.1.2 (9dbc4c5)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.10.0.37 (ad35de4)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 9 info 2017-09-02 09:49:10 UTC
I'm still having this issue, I cant debug on devices.

If i switch to adhoc distribution i can deploy with "start without debugging", just to check that my visual studiois able to communicate with the ios device plugged on a mac.

But every time i try to debug:

Launching 'PPA.iOS' on 'iPhone'...
Launch failed. The app 'PPA.iOS' could not be launched on 'iPhone'. Error: error MT1001: Could not find an application at the specified directory: /Users/assemblyName/Library/Caches/Xamarin/mtbs/builds/PPA.iOS/34ac4d7a20a1f9e432eee636df957718/bin/iPhone/Debug/PPA.iOS.app

Assemblyname and projectname are the same.

#---------#

I noticed that the file PPA.iOS.app in the mac is located here:
/Users/assemblyName/Library/Caches/Xamarin/mtbs/builds/PPA.iOS/34ac4d7a20a1f9e432eee636df957718/bin/iPhone/Debug/device-builds/iphone7.2-10.3.3/PPA.iOS.app


#--- System configuration (italian) ---#

Microsoft Visual Studio Enterprise 2017 
Versione 15.3.3
VisualStudio.15.Release/15.3.3+26730.12
Microsoft .NET Framework
Versione 4.7.02046

Edizione installata: Enterprise

Diagrammi architettura e strumenti di analisi   00369-60000-00001-AA344
Diagrammi architettura e strumenti di analisi Microsoft

Visual Basic 2017   00369-60000-00001-AA344
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA344
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA344
Microsoft Visual C++ 2017

AndroidSignatureToolCommand Extension   1.0
AndroidSignatureToolCommand Visual Studio Extension Detailed Info

Gestione pacchetti NuGet   4.3.1
Gestione pacchetti NuGet in Visual Studio. Per altre informazioni su NuGet, visitare il sito Web http://docs.nuget.org/.

JetBrains ReSharper Ultimate 2017.1.3    Build 108.0.20170613.154143
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Mono Debugging for Visual Studio   4.6.8-pre (ec7034f)
Support for debugging Mono processes with Visual Studio.

Xamarin   4.6.0.299 (b63523e27)
Estensione di Visual Studio per consentire lo sviluppo per Xamarin.iOS e Xamarin.Android.

Xamarin.Android SDK   7.4.0.21 (2851083)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.12.0.20 (80b8487)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 10 Sylvain Gravel 2017-10-08 21:22:05 UTC
Just noticed I'm having this issue on certain projects when Resharper build is enabled.  If I uncheck the Resharper Build option in Resharper/Options/Tools/Build/General/Use Resharper Build, it outputs to the proper directory...
Comment 11 Sylvain Gravel 2017-10-08 21:50:12 UTC
Even more interesting... after disabling, rebuilding the solution and re-enabling Resharper build, it's back on it's feet!  So my guess it that Resharper or MSBuild is caching something that changed in Xamarin at one point.