Bug 51292 - Cannot open iOS Story board from Visual Studio 2015 since the Xcode 8.2 and associated Xamarin update in december 2016.
Summary: Cannot open iOS Story board from Visual Studio 2015 since the Xcode 8.2 and a...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-01-08 21:19 UTC by Ifeanyi
Modified: 2017-01-11 06:27 UTC (History)
6 users (show)

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

Main StoryBoard (205.99 KB, text/xml)
2017-01-08 21:19 UTC, Ifeanyi
Error dialog contents (123.19 KB, text/plain)
2017-01-08 21:22 UTC, Ifeanyi
verbose Xamarin logs (111.36 KB, application/x-zip-compressed)
2017-01-09 17:00 UTC, Ben Beckley

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 Ifeanyi 2017-01-08 21:19:50 UTC
Created attachment 19126 [details]
Main StoryBoard

I have a storyboard that worked fine in Visual Studio until the xamarin update that came with xcode 8.2. Since then, it appears the file was severely changed by the designer because if I open the previous version from TFS it opens fine and then it's modified by the designer and then it cannot be opened anymore. So the designer is mucking with it severely to a point where it's broken. this is severely blocking. File is attached.
Comment 1 Ifeanyi 2017-01-08 21:22:48 UTC
Created attachment 19127 [details]
Error dialog contents
Comment 2 Ben Beckley 2017-01-09 17:00:48 UTC
Created attachment 19134 [details]
verbose Xamarin logs


I was able to successfully reproduce the error dialog that you have attached to this bug when using the attached storyboard file (thank you for including that).

Reproduction Steps:
1) Download Main Storyboard file
2) Create an iOS project from template
3) Replace default storyboard file with downloaded file
4) Wait for build host to connect
5) Open the file
Expected: Storyboard is visible and can be modified
Actual: Error dialog appears

error dialog from my repro:

env info:
Comment 3 Alan McGovern 2017-01-10 21:05:39 UTC
Fixed and backported to C9 and C8.

master: https://github.com/xamarin/md-addins/commit/43fb84e573d550476faa2b23105cc11c74867a20
c9: https://github.com/xamarin/md-addins/commit/4c6a392bffa53e95c06485925a519fb6b0d9761f
c8: https://github.com/xamarin/md-addins/commit/c92d0626d347aaa02839689eaac2961d24c9f446

If a workaround is urgently needed you can avoid the problem by opening the storyboard in Xcode and then disabling the 'refresh' control for every UITableViewController.
Comment 4 Ben Beckley 2017-01-11 00:17:39 UTC
Hi, I have verified the fix in C8 and C9 using the same storyboard provided by the user. Environment information is included in the screencasts:

cycle8: http://screencast.com/t/nY5LKjJpoK
cycle9: http://screencast.com/t/61MmsGDzM55
Comment 5 Ifeanyi 2017-01-11 06:27:27 UTC
Ben, thanks for the speedy attention and fix that will benefit all others. Even more thanks for providing a reliable work-around. I was able to open the storyboard in xml and remove the refreshcontrol. Turns out it was not needed anyways in my application. now I can edit my storyboard again.

Thanks again!