Bug 52610 - [VS-Connected Template] default solution platform for an iOS project is iPhone when it should be iPhoneSimulator
Summary: [VS-Connected Template] default solution platform for an iOS project is iPhon...
Status: REOPENED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.6
Assignee: Adrian Alonso
URL:
Depends on:
Blocks:
 
Reported: 2017-02-17 21:00 UTC by Ben Beckley
Modified: 2017-11-29 20:43 UTC (History)
11 users (show)

Tags: ac
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 for Bug 52610 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
REOPENED

Description Ben Beckley 2017-02-17 21:00:40 UTC
There was an onboarding bug (45942) filed which requested that iPhoneSimulator be the default platform for iOS projects. While that is the case for the plain iOS templates now, the new connected templates still have iPhone as the default platform.

Reproduction Steps:
1) Start Visual Studio
2) Select File > New > Project
3) Create a Cross Platform app (In my case, Blank/Forms/Shared/NoAzure)
4) Set the startup project to be the iOS project
Expected: iPhoneSimulator is the solution platform
Actual: iPhone is the solution platform

Xamarin.Forms Templates 0.5.201 (cycle9)
env info: https://gist.github.com/BenBeckley/93751e2f1b87dcc9c5cea3f1d2e39dbe
Comment 6 Jose Gallardo 2017-08-01 19:21:44 UTC
Reopening (for d15-4).
This patch broke solution configurations, as reported on https://bugzilla.xamarin.com/show_bug.cgi?id=58359. Hence, we've temporary reverted the patch on d15-4 until we have the right fix.

Thanks.
Comment 7 xamarin-release-manager 2017-08-15 21:28:20 UTC
Fixed in version 4.7.0.904 (d15-4)

Author: Emanuel
Commit: 60d569b451f1e6550dec217471ff5bf588940d7e (xamarin/XamarinVS)
Comment 8 Sumanta Welekar 2017-08-23 12:57:15 UTC
Verified with latest 15-4 builds. Now by default iPhoneSimulator is selected in solution Platform.

Steps Performed:
1) Start Visual Studio
2) Select File > New > Project
3) Create a Cross Platform app (Blank/Forms/Shared)
4) Set the startup project to be the iOS project

Expected: iPhoneSimulator is the solution platform
Actual: iPhone is the solution platform

Also checked with ios app,tvos app

---------------------------------------------------------------------------

Build link :-
https://wrench.internalx.com/Wrench/index.aspx?lane=xvs-win-d15-4

Build Info :-
https://gist.github.com/SumantaWelekar/6389b22817a870d9209b26da1ebdf960

---------------------------------------------------------------------------

Screencast :-
https://www.screencast.com/t/zCxo7mbik

Hence marking the bug as verified.

Thanks.
Comment 9 Jose Gallardo 2017-08-29 13:46:28 UTC
We've been discussing about this fix, and the conclusion is that it actually tackles the root issue which is switching to the iOS project (as startup project) and getting iPhoneSimulator as the selected platform.

@Sumanta, @Ben, can you guys please verify that after selecting the iOS project as startup project it not just selects iPhoneSimulator as the platform, but additionally, having an active Mac connection:

1. It builds successfully.
2. It deploys successfully to the Simulator 


Thanks!
Comment 10 Sumanta Welekar 2017-09-05 10:03:11 UTC
@jose @ben

Bug is still reproducible on 15-4 latest build. When I select iOS as a start-up project Solution Platform shows iPhone not the IphoneSimulator.

Steps Performed:
1) Start Visual Studio
2) Select File > New > Project
3) Create a Cross Platform app (Blank/Forms/Shared)
4) Set the startup project to be the iOS project

Expected: iPhoneSimulator is the solution platform

Actual: iPhone is the solution platform

---------------------------------------------------------------------------

Build link :-
https://wrench.internalx.com/Wrench/ViewLane.aspx?lane_id=5379&host_id=406&revision_id=910512

---------------------------------------------------------------------------

Build info :-
https://gist.github.com/SumantaWelekar/249adf4cda284d6835eae2fcbe3bca0e

---------------------------------------------------------------------------

Screen-cast link :-
https://www.screencast.com/t/XQuJm7xs9Lp