Bug 36273 - IBTool build errors are being discarded
Summary: IBTool build errors are being discarded
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 9.2
Hardware: PC Windows
: Normal normal
Target Milestone: (C7)
Assignee: Jeffrey Stedfast
: 36410 ()
Depends on:
Reported: 2015-11-26 05:07 UTC by Wayne Kruger
Modified: 2015-12-01 16:20 UTC (History)
7 users (show)

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 or GitHub 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 Wayne Kruger 2015-11-26 05:07:17 UTC
When setting a TableView's Content Property from Dynamic Prototypes to Static Cells a very nondescript build error is present:

1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(997,3): error :

Changing it back to Dynamic, it builds with no errors.

To reproduce:

Drag a View Controller onto the storyboard, then drag a Table View onto the controller. Set the Table View's Content property from Dynamic Prototypes to Static Cells and Build the solution.

Windows 10
Visual Studio Professional 2015
Xamarin for Windows (f860fe4)
Xamarin.iOS (3c0ec35)

OS X 10.11.1
Xamarin Studio 5.10 (build 871)
Mono 4.2.1
Comment 1 Alan McGovern 2015-11-27 05:25:07 UTC
Both the errors and warnings from ibtool are being ignored when compiling interface definition files. Example output which gives no MSBuild errors or warnings: https://gist.github.com/alanmcgovern/5bf873fb06385045cdd3
Comment 2 Alan McGovern 2015-11-27 05:33:42 UTC
Wayne, the error you were supposed to see was `Static table views are only valid when embedded in UITableViewController instances`, so the problem you had was just you were doing something iOS does not support. As such, i reassigned this to the iOS team so they can figure out why the error messages are not being reported correctly.
Comment 3 Wayne Kruger 2015-11-27 05:38:11 UTC
Hi Alan, Thanks much appreciated!
Comment 4 Jeffrey Stedfast 2015-11-30 16:58:30 UTC
The problem is that we're in a situation where if we show errors reported by ibtool's stderr, we get bug #33706.

If we ignore stderr, we get this bug.

Rock. Hard place.
Comment 5 Alan McGovern 2015-11-30 18:35:26 UTC
The errors aren't in stderr, they're in the manifest produced by ibtool when it finishes. I believe the issue is that if ibtool returns a non zero exit code we bail out before parsing and propagating the errors in that manifest
Comment 6 Alan McGovern 2015-11-30 18:36:01 UTC
Or at least that's what I remember from looking into it last week :)
Comment 7 Alan McGovern 2015-12-01 12:43:41 UTC
*** Bug 36410 has been marked as a duplicate of this bug. ***
Comment 8 Jeffrey Stedfast 2015-12-01 16:08:21 UTC
oh, okay. Then that sounds more fixable.
Comment 9 Jeffrey Stedfast 2015-12-01 16:20:00 UTC
Fixed in git master.