Bug 35510 - [XI 9.1] Building any iOS app via mdtool with the "-v" verbosity flag produces an ignorable message "Error reading framework definition '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/Xamarin.TVOS/v1.0'"
Summary: [XI 9.1] Building any iOS app via mdtool with the "-v" verbosity flag produce...
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 9.2
Hardware: PC Mac OS
: Normal minor
Target Milestone: C6SR1
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks: 35445
  Show dependency tree
 
Reported: 2015-11-03 17:25 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2015-12-18 12:38 UTC (History)
4 users (show)

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


Attachments
Test case (10.06 KB, application/zip)
2015-11-03 17:25 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details
Full output from the mdtool command (137.89 KB, text/plain)
2015-11-03 17:25 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details
Detailed version info (1.57 KB, text/plain)
2015-11-03 17:29 UTC, Brendan Zagaeski (Xamarin Team, assistant)
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 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:
Status:
VERIFIED FIXED

Description Brendan Zagaeski (Xamarin Team, assistant) 2015-11-03 17:25:17 UTC
Created attachment 13639 [details]
Test case

[XI 9.1] Building any iOS app via mdtool with the "-v" verbosity flag produces an ignorable message "Error reading framework definition '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/Xamarin.TVOS/v1.0'"


Apparently Jenkins picks up this ERROR message and reports it has a build error (see Bug 35445), so even though the message doesn't prevent the build from completing successfully, it might still be good to remove this error until Xamarin.iOS Stable includes TVOS support.

Thanks!




## Regression status: regression between Xamarin.iOS 9.0 and Xamarin.iOS 9.1

> BAD:  Xamarin Studio 5.10.0 + Xamarin.iOS 9.2.1.21  (9ce9e8b) ("Cycle 6 RC 1")
> BAD:  Xamarin Studio 5.9.8  + Xamarin.iOS 9.1.0.27  (1f068b4) ("iOS 9.1 Compatibility")
> BAD:  Xamarin Studio 5.10.0 + Xamarin.iOS 9.1.0.27  (1f068b4) ("iOS 9.1 Compatibility")
> GOOD: Xamarin Studio 5.10.0 + Xamarin.iOS 9.0.1.29  (1d27ac2) ("iOS 9.0 Compatibility SR 1")
> GOOD: Xamarin Studio 5.10.0 + Xamarin.iOS 8.10.5.26 (6757279) ("Cycle 5 SR 4")




## Steps to reproduce


1. Unzip the attached test case on Mac. (This is just a new template single view iPhone app. It does _not_ involve TVOS in any way.)


2. Build the app on the command line using the following command (the `-v` verbosity flag is required to see this error):

> $ /Applications/Xamarin/Xamarin\ Studio.app/Contents/MacOS/mdtool -v build "--configuration:Debug|iPhoneSimulator" UnifiedSingleViewIphone1.sln

(You can use any configuration.)




## Results

Before it calls out to `xbuild` to do the actual build, MonoDevelop looks for the TVOS framework, and prints an (ignorable) error message when it can't find it:

> ERROR [2015-11-03 16:54:54Z]: Error reading framework definition '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/Xamarin.TVOS/v1.0'
> System.IO.DirectoryNotFoundException: Directory '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.TVOS' not found.
>    at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:line 479
>    at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:line 489
>    at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/corlib/System.IO/Directory.cs:line 296
>    at MonoDevelop.Core.Assemblies.TargetFramework.FromFrameworkDirectory (MonoDevelop.Core.Assemblies.TargetFrameworkMoniker moniker, FilePath dir) in /Users/builder/data/lanes/2103/7c46a0b7/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetFramework.cs:line 367
>    at MonoDevelop.Core.Assemblies.TargetRuntime.ReadTargetFramework (MonoDevelop.Core.Assemblies.TargetFrameworkMoniker moniker, FilePath directory) in /Users/builder/data/lanes/2103/7c46a0b7/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/TargetRuntime.cs:line 621
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2015-11-03 17:25:56 UTC
Created attachment 13640 [details]
Full output from the mdtool command
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2015-11-03 17:29:25 UTC
Created attachment 13641 [details]
Detailed version info
Comment 3 Sebastien Pouliot 2015-11-03 17:44:26 UTC
@Rolf it looks like we might be shipping some files / directories (even if empty and tvOS is disabled)

@Jeff it would be nice if future `mdtool` did not report this error (unless that framework is required) to avoid a repetition of this error in the future (new platforms).
Comment 4 Jeffrey Stedfast 2015-11-03 17:59:30 UTC
This looks like it's in MonoDevelop Core which is not something that I maintain.
Comment 5 Rolf Bjarne Kvinge [MSFT] 2015-11-04 07:54:56 UTC
Fixed.

maccore/master: 0eb148b95ce24d0d8be9605b71a2312fba75ab66

Note that this fix can't be verified with master, since it'll only affect builds where WatchOS/TVOS is disabled.
Comment 7 Parmendra Kumar 2015-12-18 12:38:23 UTC
***************************************************************************
Reproduce Status :
***************************************************************************

First, I have tried to reproduce this issue and able to reproduce it.

Screencast: http://www.screencast.com/t/VYaplQiSOn
CommandOutput: https://gist.github.com/Parmendrak/a58c7ba5bf34caae85fc
Environment Info: https://gist.github.com/Parmendrak/cd4aa04018ca4ba04480

***************************************************************************
Verify Status :
***************************************************************************

I have verified this issue with latest C6SR1

Screencast: http://www.screencast.com/t/7Dn6dRR9f
CommandOutput: https://gist.github.com/Parmendrak/4eb124b9278b83445b64
EnvironmentInfo: https://gist.github.com/Parmendrak/bc87ef7a55fda11def4f