Bug 54802 - iOS Deployment Target Setting missing available SDKs
Summary: iOS Deployment Target Setting missing available SDKs
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.4.0 (15.1)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.3
Assignee: Emanuel
: 54986 ()
Depends on:
Reported: 2017-04-07 20:15 UTC by John Miller [MSFT]
Modified: 2017-07-06 20:04 UTC (History)
11 users (show)

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

New iOS Xamarin Forms project properties (94.55 KB, image/png)
2017-04-10 13:38 UTC, Maroš Klempa

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 John Miller [MSFT] 2017-04-07 20:15:41 UTC

It's not possible to select a deployment target other than iOS 10.3 from the Project -> Properties -> Deployment Target setting. 
**Steps to Reproduce:** 

Open the Project -> Properties menu for an iOS project
Try to select an older (9.x) deployment target in the drop-down for Deployment Target

**Actual Results:**

No other SDK numbers are available except the latest. 
Sometimes, the IDE reports that it's unable to retrieve SDKs from the connected Mac. 
**Expected Results:**

 Should see a list of previous SDK version numbers. Xamarin Studio still shows this list. 
**Build Date & Platform:**

 Microsoft Visual Studio Enterprise 2017
Version 15.1 (26403.0) Release
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Xamarin (3f99c5a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK (b16fb82)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK (7656cc6)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
**Additional Information:**

Mac also up-to-date with XI and Xcode 8.3
IDE Logs on VS do not have any errors in them. 

Workaround: I was able to manually edit the info.plist for the version I wanted to set as minimum deploy target.
Comment 1 John Miller [MSFT] 2017-04-07 20:32:37 UTC
## Suspected to be a regression or a problem with a new feature?

It seems to be a regression. Previous versions did show a drop-down list per the expected behavior. 

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

No. I was able to confirm with one other user that they noticed the same thing in their different project after updating to 15.1 releases. 

## Already took up time for many users?

Unclear. I only have reports from one user at the time of writing. 

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

(c). It's possible to workaround this by manually editing the info.plist and not using the Properties menu. (You may be able to manually type in the same value to the Properties menu too).
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2017-04-07 21:43:41 UTC
## Steps followed to do a preliminary local confirmation

1. Create a new "Visual C# > iOS > iPhone > Single View App (iPhone)" project.

2. Right click the iOS app project in the Solution Explorer and select "Properties".

3. Navigate to the "iOS Application" tab.

4. Try to select an older (9.x) deployment target in the drop-down for "Deployment Target".
Comment 3 Maroš Klempa 2017-04-10 13:35:23 UTC
I can confirm the same behaviour described by John Miller. Under previous version of Xamarin Forms ( the 'Deployment target' in project properties contain several versions of iOS (from 7 to 10.3). After upgrade to version 'Deployment target' contain only version 10.3.
This happened in existing project.

I also created new "Visual C# > iOS > iPhone > Single View App (iPhone)" project. Then in project properties I check 'Target deployment' and there was three times 10.3 value only.
Comment 4 Maroš Klempa 2017-04-10 13:38:08 UTC
Created attachment 21403 [details]
New iOS Xamarin Forms project properties
Comment 5 Ben Beckley 2017-04-11 21:41:46 UTC
*** Bug 54986 has been marked as a duplicate of this bug. ***
Comment 6 Miha Markic 2017-05-03 12:37:42 UTC
It gets worse. I suspect that since any non 10.3 version is shown as "iOS SDK not installed", no older simulator can be used.

For example, I have iOS 9.0 simulators which are listed under "Unsupported devices" and when picking one VS shows project properties with Deployment Target field showing 9.0 (I typed the value) and an error text saying that "iOS SDK is not installed" or something like that.
And this is really unfortunate.

VS2017 Ent

After reopening, clicking and god knows what else, it imporved a bit, I guess.
Now the deployment target shows an empty value (even though it is 9.0 in info.plist) and the with the error saying "can't retriever iOS SDK information from Xamarin Mac Agent). However, 9.0 simulators moved from "unsupported" to the normal list. And simulator works. But VS won't deploy the application because of:

Xamarin Simulator
Failed to install //Users/miha/Library/Caches/Xamarin/mtbs/builds/iOWebCookies/de0c569e15f0099e49060da351ccb415/bin/iPhoneSimulator/Debug/iOWebCookies.app to 922201C1-AC7A-4B4E-879D-AF1531C2693C. Could not launch the app 'com.companyname.iOWebCookies' on the device 'iOS 9.0 (13A344) - iPhone 4s': The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died)
Comment 7 Miha Markic 2017-05-03 12:47:00 UTC
Update: After trying another iOS 9.0 based simulator, it started working - app can be deployed and debugged.
Comment 9 xamarin-release-manager 2017-05-23 19:26:34 UTC
Fixed in version (master)

Author: Emanuel
Commit: 0f99f35504a0832a5dab734a2df9ab601770c4d4 (xamarin/XamarinVS)
Comment 10 Ben Beckley 2017-07-06 20:04:31 UTC
Verified the fix in (de55d19/d15-3) using VS2017 15.3.0 Preview 4 [26705.0.d15rel]. There are deployment targets from the most recent iOS version (10.3 at the time) to 6.0


env info: https://gist.github.com/BenBeckley/745a63945fb1c800a4d0746ca0eb844c