Re: [MonoTouch] [Monotouch] Problem compiling plist

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MonoTouch] [Monotouch] Problem compiling plist

Mikkel Lønow
Hello,

I'm also having the same problem.

With linker: 

Error 1: mtouch failed with the following message:


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object

  at MTouch.LinkAssemblies (System.String main, System.Collections.Generic.List`1& assemblies) [0x00000] in <filename unknown>:0 

  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

 (1)


Without linker (from MonoDevelop.log):


ERROR [2011-03-11 12:26:17Z]: 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.1/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.1/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.1/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.1/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.1/mcs/class/corlib/System.Text/UTF8Encoding.cs:950 
  at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00042] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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.1/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.1/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.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1243 
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00047] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1203 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x0003f] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1297 
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:620 
  at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:564 
  at System.Xml.XmlReader.MoveToContent () [0x00050] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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 

Kind regards,
Mikkel

On Fri, Mar 4, 2011 at 13:07, Jakub Pawłowski <[hidden email]> wrote:
Same here.

2011/2/12 Michael Hutchinson <[hidden email]>

Is there a full error in the build output, or in the MD log
(~/Library/Logs/MonoDevelop/MonoDevelop.log)?

No, I haven't found any more info in the log or build output.
 
The error "Error merging Info.plist: Invalid data" occurs when linker behaviour is set to "don't link". When I set it to "Link SDK assemblies only, the compilation fails with "mtouch failed with no output (1)". 

Part of the build output (for the monocatalog-md sample app):

"Process exited with code 1, command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=4.3 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator4.3.sdk/usr/include -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -c /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m -o /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.o -DDEBUG"

after running this command in console, gcc throws errors:

/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:9:26: error: mono/jit/jit.h: No such file or directory
/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:10:36: error: mono/metadata/assembly.h: No such file or directory
..and more.


Regards,

Jakub Pawłowski

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MonoTouch] [Monotouch] Problem compiling plist

jawbrey
there is a new release available

http://monotouch.net/News/post/New-MonoTouch-releases-for-iOS-43.aspx

2011/3/11 Mikkel Lønow <[hidden email]>
Hello,

I'm also having the same problem.

With linker: 

Error 1: mtouch failed with the following message:


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object

  at MTouch.LinkAssemblies (System.String main, System.Collections.Generic.List`1& assemblies) [0x00000] in <filename unknown>:0 

  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

 (1)


Without linker (from MonoDevelop.log):


ERROR [2011-03-11 12:26:17Z]: 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.1/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.1/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.1/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.1/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.1/mcs/class/corlib/System.Text/UTF8Encoding.cs:950 
  at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00042] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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.1/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.1/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.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1243 
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00047] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1203 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x0003f] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1297 
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:620 
  at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:564 
  at System.Xml.XmlReader.MoveToContent () [0x00050] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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 

Kind regards,
Mikkel

On Fri, Mar 4, 2011 at 13:07, Jakub Pawłowski <[hidden email]> wrote:
Same here.

2011/2/12 Michael Hutchinson <[hidden email]>

Is there a full error in the build output, or in the MD log
(~/Library/Logs/MonoDevelop/MonoDevelop.log)?

No, I haven't found any more info in the log or build output.
 
The error "Error merging Info.plist: Invalid data" occurs when linker behaviour is set to "don't link". When I set it to "Link SDK assemblies only, the compilation fails with "mtouch failed with no output (1)". 

Part of the build output (for the monocatalog-md sample app):

"Process exited with code 1, command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=4.3 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator4.3.sdk/usr/include -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -c /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m -o /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.o -DDEBUG"

after running this command in console, gcc throws errors:

/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:9:26: error: mono/jit/jit.h: No such file or directory
/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:10:36: error: mono/metadata/assembly.h: No such file or directory
..and more.


Regards,

Jakub Pawłowski

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MonoTouch] [Monotouch] Problem compiling plist

Nic Wise
Possibly silly question:

Can I have XC4 and XC3 (and obviously MT 3.x and 4.x) installed at the
same time?

Otherwise, I'm gonig to have to wait until it's RTM :(

Cheers

N

On Fri, Mar 11, 2011 at 12:53, Jason Awbrey <[hidden email]> wrote:

> there is a new release available
> http://monotouch.net/News/post/New-MonoTouch-releases-for-iOS-43.aspx
>
> 2011/3/11 Mikkel Lønow <[hidden email]>
>>
>> Hello,
>> I'm also having the same problem.
>> With linker:
>>
>> Error 1: mtouch failed with the following message:
>>
>> Unhandled Exception: System.NullReferenceException: Object reference not
>> set to an instance of an object
>>
>>   at MTouch.LinkAssemblies (System.String main,
>> System.Collections.Generic.List`1& assemblies) [0x00000] in <filename
>> unknown>:0
>>
>>   at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
>>
>>  (1)
>>
>> Without linker (from MonoDevelop.log):
>>
>> ERROR [2011-03-11 12:26:17Z]: 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.1/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.1/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.1/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.1/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.1/mcs/class/corlib/System.Text/UTF8Encoding.cs:950
>>   at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00042] in
>> /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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.1/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.1/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.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1243
>>   at Mono.Xml2.XmlTextReader.PeekChar () [0x00047] in
>> /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1203
>>   at Mono.Xml2.XmlTextReader.ReadContent () [0x0003f] in
>> /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1297
>>   at Mono.Xml2.XmlTextReader.Read () [0x00141] in
>> /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:620
>>   at System.Xml.XmlTextReader.Read () [0x0006b] in
>> /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:564
>>   at System.Xml.XmlReader.MoveToContent () [0x00050] in
>> /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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
>> Kind regards,
>> Mikkel
>> On Fri, Mar 4, 2011 at 13:07, Jakub Pawłowski <[hidden email]> wrote:
>>>
>>> Same here.
>>>
>>> 2011/2/12 Michael Hutchinson <[hidden email]>
>>>>
>>>> Is there a full error in the build output, or in the MD log
>>>> (~/Library/Logs/MonoDevelop/MonoDevelop.log)?
>>>
>>> No, I haven't found any more info in the log or build output.
>>>
>>> The error "Error merging Info.plist: Invalid data" occurs when linker
>>> behaviour is set to "don't link". When I set it to "Link SDK assemblies
>>> only, the compilation fails with "mtouch failed with no output (1)".
>>> Part of the build output (for the monocatalog-md sample app):
>>> "Process exited with code 1, command:
>>> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
>>> -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2
>>> -miphoneos-version-min=4.3 -std=c99
>>> -I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator4.3.sdk/usr/include
>>> -isysroot
>>> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
>>> -c /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m
>>> -o /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.o
>>> -DDEBUG"
>>> after running this command in console, gcc throws errors:
>>>
>>> /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:9:26:
>>> error: mono/jit/jit.h: No such file or directory
>>>
>>> /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:10:36:
>>> error: mono/metadata/assembly.h: No such file or directory
>>> ..and more.
>>> Full log available
>>> at http://www.pasteme.org/da74e6aa9418e0c8d62f528118a597fa
>>> Regards,
>>> Jakub Pawłowski
>>> _______________________________________________
>>> MonoTouch mailing list
>>> [hidden email]
>>> http://lists.ximian.com/mailman/listinfo/monotouch
>>>
>>
>>
>> _______________________________________________
>> MonoTouch mailing list
>> [hidden email]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
>
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/ | http://www.flickr.com/photos/nicwise
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MonoTouch] [Monotouch] Problem compiling plist

Mikkel Lønow
In reply to this post by jawbrey
Hi Jason,

That's the release that caused the problem (for me).

It's also filed as a bug here: https://bugzilla.novell.com/show_bug.cgi?id=678530 

"The current release of MonoDevelop does not support Xcode 4. We will be issuing an update shortly to resolve this." - Geoff Norton 

Mikkel

On Fri, Mar 11, 2011 at 13:53, Jason Awbrey <[hidden email]> wrote:
there is a new release available

http://monotouch.net/News/post/New-MonoTouch-releases-for-iOS-43.aspx

2011/3/11 Mikkel Lønow <[hidden email]>

Hello,

I'm also having the same problem.

With linker: 

Error 1: mtouch failed with the following message:


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object

  at MTouch.LinkAssemblies (System.String main, System.Collections.Generic.List`1& assemblies) [0x00000] in <filename unknown>:0 

  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

 (1)


Without linker (from MonoDevelop.log):


ERROR [2011-03-11 12:26:17Z]: 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.1/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.1/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.1/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.1/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.1/mcs/class/corlib/System.Text/UTF8Encoding.cs:950 
  at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00042] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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.1/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.1/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.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1243 
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00047] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1203 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x0003f] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1297 
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:620 
  at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:564 
  at System.Xml.XmlReader.MoveToContent () [0x00050] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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 

Kind regards,
Mikkel

On Fri, Mar 4, 2011 at 13:07, Jakub Pawłowski <[hidden email]> wrote:
Same here.

2011/2/12 Michael Hutchinson <[hidden email]>

Is there a full error in the build output, or in the MD log
(~/Library/Logs/MonoDevelop/MonoDevelop.log)?

No, I haven't found any more info in the log or build output.
 
The error "Error merging Info.plist: Invalid data" occurs when linker behaviour is set to "don't link". When I set it to "Link SDK assemblies only, the compilation fails with "mtouch failed with no output (1)". 

Part of the build output (for the monocatalog-md sample app):

"Process exited with code 1, command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=4.3 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator4.3.sdk/usr/include -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -c /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m -o /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.o -DDEBUG"

after running this command in console, gcc throws errors:

/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:9:26: error: mono/jit/jit.h: No such file or directory
/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:10:36: error: mono/metadata/assembly.h: No such file or directory
..and more.


Regards,

Jakub Pawłowski

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch




_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MonoTouch] [Monotouch] Problem compiling plist

jawbrey
Did you install the new version of MD that was released at (about) the same time as the new MT version?

On Fri, Mar 11, 2011 at 7:00 AM, Mikkel Lønow <[hidden email]> wrote:
Hi Jason,

That's the release that caused the problem (for me).

It's also filed as a bug here: https://bugzilla.novell.com/show_bug.cgi?id=678530 

"The current release of MonoDevelop does not support Xcode 4. We will be issuing an update shortly to resolve this." - Geoff Norton 

Mikkel


On Fri, Mar 11, 2011 at 13:53, Jason Awbrey <[hidden email]> wrote:
there is a new release available

http://monotouch.net/News/post/New-MonoTouch-releases-for-iOS-43.aspx

2011/3/11 Mikkel Lønow <[hidden email]>

Hello,

I'm also having the same problem.

With linker: 

Error 1: mtouch failed with the following message:


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object

  at MTouch.LinkAssemblies (System.String main, System.Collections.Generic.List`1& assemblies) [0x00000] in <filename unknown>:0 

  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

 (1)


Without linker (from MonoDevelop.log):


ERROR [2011-03-11 12:26:17Z]: 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.1/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.1/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.1/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.1/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.1/mcs/class/corlib/System.Text/UTF8Encoding.cs:950 
  at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00042] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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.1/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.1/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.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1243 
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00047] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1203 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x0003f] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1297 
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:620 
  at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:564 
  at System.Xml.XmlReader.MoveToContent () [0x00050] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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 

Kind regards,
Mikkel

On Fri, Mar 4, 2011 at 13:07, Jakub Pawłowski <[hidden email]> wrote:
Same here.

2011/2/12 Michael Hutchinson <[hidden email]>

Is there a full error in the build output, or in the MD log
(~/Library/Logs/MonoDevelop/MonoDevelop.log)?

No, I haven't found any more info in the log or build output.
 
The error "Error merging Info.plist: Invalid data" occurs when linker behaviour is set to "don't link". When I set it to "Link SDK assemblies only, the compilation fails with "mtouch failed with no output (1)". 

Part of the build output (for the monocatalog-md sample app):

"Process exited with code 1, command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=4.3 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator4.3.sdk/usr/include -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -c /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m -o /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.o -DDEBUG"

after running this command in console, gcc throws errors:

/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:9:26: error: mono/jit/jit.h: No such file or directory
/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:10:36: error: mono/metadata/assembly.h: No such file or directory
..and more.


Regards,

Jakub Pawłowski

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch





_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MonoTouch] [Monotouch] Problem compiling plist

Mikkel Lønow
MonoDevelop 2.6 beta 1? I believe it was released March 1.

The quote is from yesterday.

On Fri, Mar 11, 2011 at 14:07, Jason Awbrey <[hidden email]> wrote:
Did you install the new version of MD that was released at (about) the same time as the new MT version?

On Fri, Mar 11, 2011 at 7:00 AM, Mikkel Lønow <[hidden email]> wrote:
Hi Jason,

That's the release that caused the problem (for me).

It's also filed as a bug here: https://bugzilla.novell.com/show_bug.cgi?id=678530 

"The current release of MonoDevelop does not support Xcode 4. We will be issuing an update shortly to resolve this." - Geoff Norton 

Mikkel


On Fri, Mar 11, 2011 at 13:53, Jason Awbrey <[hidden email]> wrote:
there is a new release available

http://monotouch.net/News/post/New-MonoTouch-releases-for-iOS-43.aspx

2011/3/11 Mikkel Lønow <[hidden email]>

Hello,

I'm also having the same problem.

With linker: 

Error 1: mtouch failed with the following message:


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object

  at MTouch.LinkAssemblies (System.String main, System.Collections.Generic.List`1& assemblies) [0x00000] in <filename unknown>:0 

  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

 (1)


Without linker (from MonoDevelop.log):


ERROR [2011-03-11 12:26:17Z]: 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.1/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.1/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.1/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.1/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.1/mcs/class/corlib/System.Text/UTF8Encoding.cs:950 
  at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00042] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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.1/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.1/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.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1243 
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00047] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1203 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x0003f] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1297 
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:620 
  at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:564 
  at System.Xml.XmlReader.MoveToContent () [0x00050] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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 

Kind regards,
Mikkel

On Fri, Mar 4, 2011 at 13:07, Jakub Pawłowski <[hidden email]> wrote:
Same here.

2011/2/12 Michael Hutchinson <[hidden email]>

Is there a full error in the build output, or in the MD log
(~/Library/Logs/MonoDevelop/MonoDevelop.log)?

No, I haven't found any more info in the log or build output.
 
The error "Error merging Info.plist: Invalid data" occurs when linker behaviour is set to "don't link". When I set it to "Link SDK assemblies only, the compilation fails with "mtouch failed with no output (1)". 

Part of the build output (for the monocatalog-md sample app):

"Process exited with code 1, command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=4.3 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator4.3.sdk/usr/include -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -c /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m -o /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.o -DDEBUG"

after running this command in console, gcc throws errors:

/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:9:26: error: mono/jit/jit.h: No such file or directory
/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:10:36: error: mono/metadata/assembly.h: No such file or directory
..and more.


Regards,

Jakub Pawłowski

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch






_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MonoTouch] [Monotouch] Problem compiling plist

Geoff Norton
No, MonoDevelop 2.4.2 (20402002) fixes this issue.

-g

On 2011-03-11, at 8:16 AM, Mikkel Lønow wrote:

MonoDevelop 2.6 beta 1? I believe it was released March 1.

The quote is from yesterday.

On Fri, Mar 11, 2011 at 14:07, Jason Awbrey <[hidden email]> wrote:
Did you install the new version of MD that was released at (about) the same time as the new MT version?

On Fri, Mar 11, 2011 at 7:00 AM, Mikkel Lønow <[hidden email]> wrote:
Hi Jason,

That's the release that caused the problem (for me).

It's also filed as a bug here: https://bugzilla.novell.com/show_bug.cgi?id=678530 

"The current release of MonoDevelop does not support Xcode 4. We will be issuing an update shortly to resolve this." - Geoff Norton 

Mikkel


On Fri, Mar 11, 2011 at 13:53, Jason Awbrey <[hidden email]> wrote:
there is a new release available

http://monotouch.net/News/post/New-MonoTouch-releases-for-iOS-43.aspx

2011/3/11 Mikkel Lønow <[hidden email]>

Hello,

I'm also having the same problem.

With linker: 

Error 1: mtouch failed with the following message:


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object

  at MTouch.LinkAssemblies (System.String main, System.Collections.Generic.List`1& assemblies) [0x00000] in <filename unknown>:0 

  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

 (1)


Without linker (from MonoDevelop.log):


ERROR [2011-03-11 12:26:17Z]: 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.1/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.1/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.1/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.1/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.1/mcs/class/corlib/System.Text/UTF8Encoding.cs:950 
  at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00042] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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.1/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.1/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.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1243 
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00047] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1203 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x0003f] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1297 
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:620 
  at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:564 
  at System.Xml.XmlReader.MoveToContent () [0x00050] in /private/tmp/monobuild/build/BUILD/mono-2.10.1/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.1/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 

Kind regards,
Mikkel

On Fri, Mar 4, 2011 at 13:07, Jakub Pawłowski <[hidden email]> wrote:
Same here.

2011/2/12 Michael Hutchinson <[hidden email]>

Is there a full error in the build output, or in the MD log
(~/Library/Logs/MonoDevelop/MonoDevelop.log)?

No, I haven't found any more info in the log or build output.
 
The error "Error merging Info.plist: Invalid data" occurs when linker behaviour is set to "don't link". When I set it to "Link SDK assemblies only, the compilation fails with "mtouch failed with no output (1)". 

Part of the build output (for the monocatalog-md sample app):

"Process exited with code 1, command: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=4.3 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator4.3.sdk/usr/include -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -c /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m -o /var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.o -DDEBUG"

after running this command in console, gcc throws errors:

/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:9:26: error: mono/jit/jit.h: No such file or directory
/var/folders/vR/vRyYmXhMHCmSRELmDcUrZ++++TM/-Tmp-/tmp2b42bb3c.tmp/main.m:10:36: error: mono/metadata/assembly.h: No such file or directory
..and more.


Regards,

Jakub Pawłowski

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch





_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Loading...