Bug 39064 - No error message when building a storyboard with a UIStackView with deployment target < iOS 9
Summary: No error message when building a storyboard with a UIStackView with deploymen...
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 9.4 (iOS 9.2)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2016-02-23 20:53 UTC by Jon Goldberger [MSFT]
Modified: 2016-02-23 22:01 UTC (History)
2 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 Jon Goldberger [MSFT] 2016-02-23 20:53:04 UTC
## Description

Note: This is about the lack of an actionable error message when building a storyboard with a UIStackView with deployment target < iOS 9. I do understand that UIStackView was added in iOS 9 so will not work for < iOS 9. 

When building the same storyboard in XCode, there is a clear error message about UIStackView not being available pre iOS 9. But the error message in XS and VS is empty. 

## Steps to reproduce

1. Open Xamarin Studio or Visual Studio.

2. Create a new Single View iOS app. 

3. Open the storyboard and add a UIStackView to the view controller. 

4. Make sure the project Deployment Target is set to iOS < 9.0 in the Info.plist.

5. Build the project.

Expected result: will get an error message that UIStackView is only available in iOS >= 9.0 and to set the Project Deployment target, or the "Builds for" property of the storyboard, to >= iOS 9.0

Actual result: Build error only shows the source file, project, and Path in the Errors pane. No description is displayed. 

## Note

From the build output:

>Task "IBTool"
>		Using task IBTool from Xamarin.iOS.Tasks.IBTool, Xamarin.iOS.Tasks, Version=, Culture=neutral, PublicKeyToken=null
>		IBTool Task
>		  AppManifest: Info.plist
>		  InterfaceDefinitions:
>		    Resources/LaunchScreen.xib
>		    Main.storyboard
>		  IntermediateOutputPath: obj/iPhoneSimulator/Debug/
>		  IsWatchApp: False
>		  IsWatch2App: False
>		  ProjectDir: /Users/apple/Downloads/TestUIStackView/TestUIStackView
>		  ResourcePrefix: Resources
>		  SdkBinPath: /Applications/Xcode.app/Contents/Developer/usr/bin
>		  SdkPlatform: iPhoneSimulator
>		  SdkRoot: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk
>		  SdkVersion: 9.2
>		Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 8.4 --target-device iphone --target-device ipad --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk --compilation-directory /Users/apple/Downloads/TestUIStackView/TestUIStackView/obj/iPhoneSimulator/Debug/ibtool /Users/apple/Downloads/TestUIStackView/TestUIStackView/Resources/LaunchScreen.xib
>		Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution finished (exit code = 0).
>		Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 8.4 --target-device iphone --target-device ipad --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk --compilation-directory /Users/apple/Downloads/TestUIStackView/TestUIStackView/obj/iPhoneSimulator/Debug/ibtool /Users/apple/Downloads/TestUIStackView/TestUIStackView/Main.storyboard
>		Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution finished (exit code = 1).
>Main.storyboard: error : 
>	Task "IBTool" execution -- FAILED

## Environment

=== Xamarin Studio ===

Version 5.10.2 (build 56)
Installation UUID: 964c531b-d928-456b-a9ae-e1f82266b360
	Mono 4.2.2 (explicit/996df3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402020030

=== Xamarin.Profiler ===

Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 7.2.1 (9548.1)
Build 7C1002

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 962a050
Branch: master
Build date: 2016-01-29 16:59:11-0500

=== Xamarin.Mac ===

Version: (Business Edition)

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/apple/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin Inspector ===

Hash: 45b35bb
Branch: master
Build date: Thu Jan 14 18:53:32 UTC 2016

=== Build Information ===

Release ID: 510020056
Git revision: bb74ff467c62ded42b7b7ac7fdd2edc60f8647b0
Build date: 2016-01-26 16:24:41-05
Xamarin addins: 8b797d7ba24d5abab226c2cf9fda77f666263f1b
Build lane: monodevelop-lion-cycle6-c6sr1

=== Operating System ===

Mac OS X 10.11.3
Darwin Jons-iMac.local 15.3.0 Darwin Kernel Version 15.3.0
    Thu Dec 10 18:40:58 PST 2015
    root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64
Comment 2 Rolf Bjarne Kvinge [MSFT] 2016-02-23 20:57:35 UTC
@Jeff, is this something that's already fixed for C7?
Comment 3 Jeffrey Stedfast 2016-02-23 22:01:26 UTC