Bug 656 - ios 5 beta 7 Info.Plist error on compile
Summary: ios 5 beta 7 Info.Plist error on compile
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
: 675 ()
Depends on:
Blocks:
 
Reported: 2011-09-06 17:37 UTC by James Clancey
Modified: 2011-09-09 11:31 UTC (History)
6 users (show)

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


Attachments
xcode 4.2 generated plist with target = iOS 4.3 (1.01 KB, application/octet-stream)
2011-09-07 16:38 UTC, Miguel de Icaza [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 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:
RESOLVED FIXED

Description James Clancey 2011-09-06 17:37:41 UTC
Compile time error for all my ios apps using mt 4.1.1 or 4.9 on ios 5 beta 7.

There is a merge error for info.plist. witha  null reference error.
Comment 1 Sebastien Pouliot 2011-09-06 20:08:18 UTC
Other people reported failures with beta 7 that occurs much later than merging the Info.plist file. Please provide the full stack trace of the error. Thanks
Comment 2 Miguel de Icaza [MSFT] 2011-09-06 22:01:06 UTC
I tried building TweetStation, and I get on the output window:

"Error merging Info.plist: Invalid data"

There is nothing on the build output pad related to this.   This is with MonoDevelop 2.6
Comment 3 Miguel de Icaza [MSFT] 2011-09-06 22:12:23 UTC
Got this from the Console crash log:

Starting MonoDevelop
Loading Workbench
   Initializing Main Window
ERROR [2011-09-06 22:00:32Z]: Error merging Info.plist
System.Xml.XmlException: Invalid data ---> System.Text.DecoderFallbackException: Exception of type 'System.Text.DecoderFallbackException' was thrown.
  at System.Text.DecoderExceptionFallbackBuffer.Fallback (System.Byte[] bytesUnknown, Int32 index) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Text/DecoderExceptionFallbackBuffer.cs:46 
  at System.Text.UTF8Encoding.Fallback (System.Object provider, System.Text.DecoderFallbackBuffer& buffer, System.Byte[]& bufferArg, System.Byte* bytes, Int64 byteIndex, UInt32 size, System.Char* chars, System.Int32& charIndex) [0x00051] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Text/UTF8Encoding.cs:622 
  at System.Text.UTF8Encoding.InternalGetChars (System.Byte* bytes, Int32 byteCount, System.Char* chars, Int32 charCount, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) [0x00345] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Text/UTF8Encoding.cs:806 
  at System.Text.UTF8Encoding.InternalGetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) [0x0010b] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Text/UTF8Encoding.cs:678 
  at System.Text.UTF8Encoding+UTF8Decoder.GetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) [0x00004] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Text/UTF8Encoding.cs:950 
  at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00042] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlInputStream.cs:193 
  at System.Xml.NonBlockingStreamReader.Read (System.Char[] dest_buffer, Int32 index, Int32 count) [0x00072] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlInputStream.cs:237 
  at System.Xml.XmlStreamReader.Read (System.Char[] dest_buffer, Int32 index, Int32 count) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlInputStream.cs:64 
  --- End of inner exception stack trace ---
  at System.Xml.XmlStreamReader.Read (System.Char[] dest_buffer, Int32 index, Int32 count) [0x00010] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlInputStream.cs:68 
  at Mono.Xml2.XmlTextReader.ReadTextReader (Int32 remained) [0x0000c] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1243 
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00047] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1203 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x0003f] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1297 
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlTextReader.cs:620 
  at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:564 
  at System.Xml.XmlReader.MoveToContent () [0x00050] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlReader.cs:559 
  at System.Xml.XmlReader.ReadToDescendant (System.String name) [0x0000b] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.XML/System.Xml/XmlReader.cs:816 
  at MonoDevelop.MacDev.Plist.PlistDocument.LoadFromXml (System.Xml.XmlReader reader) [0x00000] in /Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.MacDev/MonoDevelop.MacDev.Plist/PlistDocument.cs:77 
  at MonoDevelop.MacDev.Plist.PlistDocument.LoadFromXmlFile (System.String path) [0x0001e] in /Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.MacDev/MonoDevelop.MacDev.Plist/PlistDocument.cs:59 
  at MonoDevelop.IPhone.IPhoneFramework.GrabRootString (System.String file, System.String key) [0x00006] in /Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneFramework.cs:167 
  at MonoDevelop.IPhone.IPhoneFramework.GetDTSettings () [0x0005f] in /Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneFramework.cs:156 
  at MonoDevelop.IPhone.IPhoneBuildExtension+<UpdateInfoPlist>c__AnonStorey8.<>m__4 (MonoDevelop.MacDev.Plist.PlistDocument doc) [0x003ba] in /Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneBuildExtension.cs:454 
  at MonoDevelop.MacDev.MacBuildUtilities.CreateMergedPlist (IProgressMonitor monitor, MonoDevelop.Projects.ProjectFile template, System.String outPath, System.Func`2 merge) [0x000af] in /Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.MacDev/MacBuildUtilities.cs:198 
Lucida Grande 12
Comment 4 Mikayla Hutchinson [MSFT] 2011-09-07 05:09:18 UTC
What MD version is this? 2.6 b3?
Comment 5 Mikayla Hutchinson [MSFT] 2011-09-07 05:18:12 UTC
And I'm pretty sure Miguel's error is not the same as the one originally reported. Is there a stack trace for the NRE in the MD log?
Comment 6 Miguel de Icaza [MSFT] 2011-09-07 11:38:26 UTC
I was using MonoDevelop 2.6 (our internal 2.6 final).

This is trying to load one of the PList files, but I tried doing:

var x = new XmlDocument ();
x.Load (...)

For each one of the PList files listed, and they were all parsed.   Perhaps I should use XmlReader to make sure that there is no difference between those two.
Comment 11 Miguel de Icaza [MSFT] 2011-09-07 18:21:14 UTC
We now have a fix that is on the MonoDevelop 2.6 branch and on the new MonoDevelop 2.8.

This will require new builds of both to work, for now, as we are doing a new MonoDevelop 2.8 tomorrow, that will fit nicely with the theme of the Alpha and iOS5.
Comment 12 Sebastien Pouliot 2011-09-09 11:31:59 UTC
*** Bug 675 has been marked as a duplicate of this bug. ***