Bug 54349 - MT1007: Failed to launch
Summary: MT1007: Failed to launch
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-03-31 17:14 UTC by ralphcgutierrez
Modified: 2017-04-03 06:23 UTC (History)
5 users (show)

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

Screenshot of the new "26228.12" update under "Extensions and Updates", just for reference (40.78 KB, image/png)
2017-03-31 20:16 UTC, Brendan Zagaeski (Xamarin Team, assistant)

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:

Description ralphcgutierrez 2017-03-31 17:14:30 UTC
When i try to deploy my application in my iPhone 6 device, I get a message "The app has been terminated.".
First,I think i have error on my code so that i created a new project and deploy again to my iPhone device
but still won't connect and same issue occurred. Right now i can't deploy my app on my iPhone device even on the IPhone simulator on my Windows PC.

Please see below for more info about versions of installed tools i have.

Microsoft Visual Studio Enterprise 2017
Version 15.0.26228.10 D15RTWSVC
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools   00369-60000-00001-AA956
Microsoft Architecture Diagrams and Analysis Tools

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

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

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

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

Application Insights Tools for Visual Studio Package   8.6.00209.10
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30223.0
ASP.NET and Web Tools 2017

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

Dotfuscator Community Edition
PreEmptive Protection - Dotfuscator CE

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

Merq   1.1.13-alpha (2f64b6d)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

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.0.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   15.0.26228.00
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.

Xamarin (73f58d6)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK (9578cdc)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK (35d1ccd)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Version 8.3(8E162)

*iPhone Device Version:
-iOS 10.3

MacOS Sierra Vesion 10.12
MAC Mini (Late 2014)


InspectorDebugSession(2): StateChange: Start -> EntryPointBreakpointRegistered
InspectorDebugSession(2): Constructed
Launching 'PocketBeat.iOS' on 'Ralph iPhone 6'...
InspectorDebugSession(2): Disposed
InspectorDebugSession(2): HandleTargetEvent: TargetExited
The app has been terminated.
Launch failed. The app 'Beat.iOS' could not be launched on 'Ralph iPhone 6'. Error: error MT1007: Failed to launch the application '/Users/Ralph/Library/Caches/Xamarin/mtbs/builds/Beat.iOS/fa349952a816a012f390f2c6b4254760/bin/iPhone/Debug/BeatiOS.app' on the device 'Ralph iPhone 6': Object reference not set to an instance of an object. You can still launch the application manually by tapping on it.
. Please check the logs for more details.
The app has been terminated.
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2017-03-31 17:37:49 UTC
Non-engineering team preliminary quick review

## Specific to one particular project, development computer, or target mobile device?

Thanks for the version info.  It looks like the problem is most likely the following mismatch:

> Xamarin
> Version 8.3(8E162)

Xamarin predates the Xamarin compatibility updates for Xcode 8.3 [1].  You can get the Xcode 8.3 compatibility version of Xamarin in Visual Studio 2017 using the steps on [2].

[1] https://releases.xamarin.com/stable-release-cycle-9-with-xcode-8-3-support/

[2] https://releases.xamarin.com/technical-bulletin-xcode-8-3-support-for-vs-2017/

## Considers the relevant log files for the part(s) of the process where something goes wrong (IDE editing, MSBuild building, deploying, launching, attaching the debugger, an in-app error, or something else), and has them attached?

If the Xamarin update [2] does not resolve the issue, please replicate the issue once more, and then (in the same instance of Visual Studio) collect and attach back the Xamarin logs files from "Help > Xamarin > Zip Logs".  Thanks in advance!

## Other bookkeeping notes

### Already took up time for many users?

It seems not yet.  At the moment this appears to be the only recent report (on Bugzilla, Stack Overflow, or the forums) of the MT1007 error popping up for a user.

## Makes development (a) difficult, impossible, or potentially hazardous, (b) moderately inconvenient, or (c) mildly inconvenient for users?

(a) or (b) The symptoms as described so far would at the least prevent the user from being able to use the debugger in the IDE to troubleshoot issues in their app.  It might be possible to move forward with some development by manually launching the app on the device and using logging statements, but that would be at best still be a significant inconvenience.
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2017-03-31 20:16:53 UTC
Created attachment 21119 [details]
Screenshot of the new "26228.12" update under "Extensions and Updates", just for reference

## Information update

The new "Tools > Extensions and Updates > Product Updates" Visual Studio Update (15.0.26228.12) for VS 2017 that has just been published [1] now includes XamarinVS with the compatibility fixes for Xcode 8.3.  So if you prefer, you can now apply that update instead of manually downloading and installing the individual .vsix packages.

[1] https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes
Comment 3 ralphcgutierrez 2017-04-03 06:23:18 UTC
March 31,2017 fixed the issues.Thanks bugzilla.xamarin for quick response.

Link : https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes

Release Date: March 31, 2017 - version 15.0 (26228.12)
What's New in this Release

We now support Xcode 8.3, iOS 10.3, watchOS 3.2, and tvOS 10.2 tools and APIs in the Xamarin.VS Extension for Visual Studio 2017.