Bug 26182 - 5.1.1 set as Deployment target for iOS apps does not show iOS 5.1.1 devices in the device selection list.
Summary: 5.1.1 set as Deployment target for iOS apps does not show iOS 5.1.1 devices i...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.9
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-19 21:11 UTC by Jon Goldberger [MSFT]
Modified: 2016-12-23 13:12 UTC (History)
8 users (show)

Tags:
Is this bug a regression?: ---
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 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 NOT_REPRODUCIBLE

Description Jon Goldberger [MSFT] 2015-01-19 21:11:30 UTC
## Description

Although iOS version 5.1.1 is noted as the final build of iOS 5, and the last build support for the iPad (1st generation) and the iPod touch (3rd Generation), you can not select that as a deployment target with the drop down menu for Deployment Target, though you can enter it manually. 5.2 is available as an option but my research shows that there never was a released iOS 5.2 version. However when manually entering 5.1.1 as the Deployment Target, and iOS 5.1.1 devices, like the iPad 1, will not appear in the device selection list. But with 5.1 set as the Deployment Target, the following error is received on build:

>Error 1: The minimum deployment target for Unified applications is 5.1.1, the current deployment target is '5.1'. Please select a newer deployment target in your project's iOS Application options.	Playground-iOSUniversal


See also description by customer in private comment below.
Comment 2 Jon Goldberger [MSFT] 2015-01-19 21:14:08 UTC
## Additional note:

In Xamarin Studio on the Mac, I was able to build with the deployment target set to 5.1, unlike in VS where an error is thrown saying the minimum Deployment Target for the Unified API is 5.1.1, and it also deployed to the simulator. However I did not have an iOS 5.x device or simulator available to test this issue fully.
Comment 3 Mark Wallis 2015-01-19 23:25:04 UTC
Can confirm that I was able to get it to build and deploy using Xamarin Studio on the Mac :-)


From my perspective that's all I need, thanks!
Comment 4 Sebastien Pouliot 2015-01-19 23:26:01 UTC
TL&DR: iOS 5.1.1 is supported by Xamarin unified apps (see note for the special case it represent).

I confirmed [1] our test apps were working on my 5.1.1 device last week using XS. So that definitively works with XI 8.6 and XS 5.7.

I'm not home (no 5.1.1 device with me) this week but:

a) XS does not show 5.1 (it shows 5.2 which, you're right, does not exists). OTOH such builds will work (see note) and deploy if you set the value to 5.1.1 manually;

b) I do not have XVS and comment #1 seems to indicate a Windows computer with VS. That could be a different issue (and maybe that's the case where deploy fails?).


Note: Even for Apple iOS 5.1.1 builds are special. Deploy won't work [2] for a fat (32/64bits) app on them. You can submit them and Apple will modify the package so it will work fine on the app store. If you want to debug/test it then you need to switch to an armv7 (only) build. This is normal (and happens for ObjC apps as well [3]) as 64bits support did not exists when 5.1.1 was released.


@Jon it will likely be faster if you could file two separate bugs, one for XS (a) and one for XVS (b) and make them point back to this bug for more information.


[1] See desk case #117667
[2] it will fail when installing the app. Apple's `installd` will crash on the device.
[3] http://stackoverflow.com/q/25324787
Comment 5 Jon Goldberger [MSFT] 2015-01-20 13:59:02 UTC
@Sebastien,

Well it seems to only be a bug on VS, well except for the 5.2 version in the list, but at least on XS one can deploy to an iOS 5.1.1 device. So perhaps just change this to a XVS bug?
Comment 6 Sebastien Pouliot 2015-01-20 14:12:27 UTC
@Jon maybe, if XVS has 5.2 too then c.c. jeff and add a note that XS shows that version as well (and miss 5.1.1)
Comment 7 Jon Goldberger [MSFT] 2015-01-20 16:59:54 UTC
Moving to Visual Studio iOS extension. 

XVS does indeed show the 5.2 iOS version in the Deployment Target dropdown and is missing the 5.1.1 version. When 5.1.1 is entered manually, devices that are using iOS version 5.1.1 (iPad 1) are not showing in the device list. When 5.1 is selected, the 5.1.1 devices will show but can not build due to the error that 5.1.1 is the minimum deployment target allowed for Unified iOS apps, so the end result in Visual Studio is that an iOS Unified project can not be launched to a 5.1.1 device.