Bug 29324 - Better error message when trying to deploy to a device that has an iOS version lower than the Deployment Target of the project.
Summary: Better error message when trying to deploy to a device that has an iOS versio...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.9
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-04-22 15:13 UTC by Jon Goldberger [MSFT]
Modified: 2017-11-13 20:13 UTC (History)
7 users (show)

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


Attachments
Screenshot of Error (12.39 KB, image/png)
2017-11-13 20:13 UTC, John Miller [MSFT]
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 Jon Goldberger [MSFT] 2015-04-22 15:13:44 UTC
## Description

With a Xamarin iOS project that has the Deployment target set to, for example, 8.0, when you try to deploy to a device with iOS < 8.0, you get the following error in the errors pane:

"Failed to deploy application on the target device. Please try to rebuild the solution and try again."

I feel this should indicate the issue of the iOS version of the device being lower than the Project Deployment Target. That said, double clicking on the error brings up a dialog that does contain the following text:

error MT1006: Could not install the application 'path/to/app' on the device iPhone 4: The 'MinimumOSVersion' inside Info.plist does not include the device version (error: 0xe800007e).

but it seems this would best be indicated in the errors pane directly to make it more obvious.
Comment 1 Enzo Heredia 2015-09-28 14:53:15 UTC
A better error message is shown:

Severity	Code	Description	Project	File	Line
Error		error MT1006: Could not install the application '/Users/enzo/Library/Caches/Xamarin/mtbs/builds/Phoneword_iOS/9c9651e1e2800753712650bd3ddd3852/bin/iPhone/Debug/Phoneword_iOS.app' on the device Visual's+ iPhone: The 'MinimumOSVersion' inside Info.plist does not include the device version (error: 0xe800007e).			0



Please verify in alpha or latest master build
Comment 2 Jon Goldberger [MSFT] 2015-09-28 19:03:43 UTC
Yes, the better error message is now displayed in the Error List pane, hence marking as Verified.
Comment 3 mitchmuenster 2017-11-10 00:00:02 UTC
I know this is a bit old but the latest version of Xamarin.ios does error with "Launch failed. The app 'MJEMobile.iOS' could not be launched on 'Mitchell’s iPhone'. Error: error MT1006: Could not install the application '/Users/mitch/Library/Caches/Xamarin/mtbs/builds/MJEMobile.iOS/590cde193fb8cc2a5b449cbea92c5267/bin/iPhone/Debug/device-builds/iphone9.2-11.0.3/MJEMobile.iOS.app' on the device 'Mitchell’s iPhone': The 'MinimumOSVersion' inside Info.plist does not include the device version (error: 0xe800007e)." but does not actually list as an error..

not sure if this is a bug regression or not
Comment 4 John Miller [MSFT] 2017-11-13 20:12:53 UTC
Hey Mitch,

I see this listed as an error in Visual Studio 15.4.3. It would be best to file a new issue via the Help > Report a Problem menu from within Visual Studio with the details of what you are noticing. I'll attach an image of what I see to confirm.
Comment 5 John Miller [MSFT] 2017-11-13 20:13:24 UTC
Created attachment 25675 [details]
Screenshot of Error

Hey Mitch,

Here is an image of the Error listed as I see it.