Bug 55991 - Entitlements.plist issues in iOS project properties when never connected to build host
Summary: Entitlements.plist issues in iOS project properties when never connected to b...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: 15.2
Assignee: Emanuel
URL:
Depends on:
Blocks:
 
Reported: 2017-05-04 17:51 UTC by Adam Patridge [MSFT]
Modified: 2017-06-09 21:18 UTC (History)
3 users (show)

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


Attachments
Screenshot of project properties error dialog (31.68 KB, image/png)
2017-05-04 17:51 UTC, Adam Patridge [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:
RESOLVED FIXED

Description Adam Patridge [MSFT] 2017-05-04 17:51:39 UTC
Created attachment 21956 [details]
Screenshot of project properties error dialog

Steps:
0. [possible pre-req] Don't have macOS build host available, but have it configured at one point (e.g., shut it off).
1. Launch VS2017
2. Create new Blank App iOS app
3. Don't connect to macOS host when it asks
4. Go to project properties -> iOS Build Signing
5. Click ... and set to pre-existing Entitlements.plist, which exists from template generation (get "Object reference not set to an instance of an object." error from Visual Studio; see attached picture)

At this point, you have to force quit Visual Studio because almost everything else will re-trigger the same error alert.

More details:
If you connect to a build host, Entitlements.plist is in the field already.
If you are connected and then disconnect, you don't get this error.

Actual results:
Get stuck in an error loop on VS and must force quit from Task Manager or procexp.
The project properties end up in an unsaved state. Trying to close the window or quit VS will only bring back the same alert dialog. (Even trying just about any menu option in VS will bring it back.)

Expected:
Changing the Custom entitlements plist file shouldn't pop an unavoidable alert message.

System details:
NOTE: I am using a pre-release version of the Xamarin templates VSIX.

Microsoft Visual Studio Enterprise 2017
Version 15.1 (26403.7) Release
VisualStudio.15.Release/15.1.0+26403.7
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

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

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

Xamarin.iOS and Xamarin.Mac SDK   10.8.0.174 (7656cc6)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 1 Jose Gallardo 2017-05-18 17:10:53 UTC
This issue should be addressed with the new Entitlements editor we're including on XVS 15.3

Updating the target milestone accordingly.

Thanks
Comment 2 Jose Gallardo 2017-06-02 12:44:23 UTC
Updating the milestone again, as the Entitlements editor is going to ship on 15.4.

Thanks
Comment 3 Emanuel 2017-06-09 21:18:13 UTC
This issue was fixed as part of the iOS Property Pages revamp (15.2).