https://bugzilla.novell.com/show_bug.cgi?id=666260
https://bugzilla.novell.com/show_bug.cgi?id=666260#c2 --- Comment #2 from Garth Tissington <[email protected]> 2011-01-21 23:02:46 UTC --- I am building in Monodevelop 2.4.1 on OS X 10.6.6 Some addition info: - I have several application classes that are De serialized with XmlSerializer. They each have the [XmlRoot] attribute - I find that if I compile with "Link All Assemblies" AND I add the [Preserve(AllMembers=true)] attributes to these same classes then most of my runtime errors are fixed ( but I'm still chasing other that manifest only on the iPhone not on the simulator) I removed all occurrences of [Preserve(AllMembers=true)], Change Link options back top "Do Not Link" and rebuilt with "Extra Args" = -v -v -v. Here is the build output. Building: iSnap (Debug|iPhone) Building Solution iSnap Building: iSnap (Debug|iPhone) Detecting signing identity... Provisioning profile: "iSnap_iPodTouch01" (7E73869C-CCDD-4FB8-B300-646F8E1FBA8A) Signing Identity: "iPhone Developer: Rod Poirier (77QDGA7K5F)" App ID: "X63H4JSBSW.isnap" Performing main compilation... Updating CodeBehind files Updated MainWindow.xib.designer.cs /Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.exe" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll" /nologo /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8 "/define:DEBUG" /t:exe "/Users/Garth/Projects/iSnap/iSnap/Main.cs" "/Users/Garth/Projects/iSnap/iSnap/DialogElements/TemplateElement.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Card.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Color.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Enums.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Extensions.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/HelperClasses.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Item.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Postfix.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Section_FormulaCalculation.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Section.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Serialization.cs" "/Users/Garth/Projects/iSnap/iSnap/SnapCard/Statistics.cs" "/Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/ActivityElement.cs" "/Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Controls.cs" "/Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/DialogViewController.cs" "/Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/ElementBadge.cs" "/Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs" "/Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/LoadMoreElement.cs" "/Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/OwnerDrawnElement.cs" "/Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Reflect.cs" "/Users/Garth/Projects/iSnap/iSnap/DialogElements/CardListItemElement.cs" "/Users/Garth/Projects/iSnap/iSnap/DialogElements/CardSectionElement.cs" "/Users/Garth/Projects/iSnap/iSnap/Utilities/Locale.cs" "/Users/Garth/Projects/iSnap/iSnap/MainWindow.xib.designer.cs" "/Users/Garth/Projects/iSnap/iSnap/ViewControllers/1. Card Templates/CardListViewController.cs" "/Users/Garth/Projects/iSnap/iSnap/ViewControllers/2. Card/CardSectionViewController.cs" "/Users/Garth/Projects/iSnap/iSnap/ViewControllers/2. Card/CardViewController.cs" "/Users/Garth/Projects/iSnap/iSnap/ViewControllers/3. Tools/ToolsViewController.cs" "/Users/Garth/Projects/iSnap/iSnap/ViewControllers/1. Card Templates/TemplateListViewController.cs" "/Users/Garth/Projects/iSnap/iSnap/DialogElements/SinglePickerElement.cs" "/Users/Garth/Projects/iSnap/iSnap/ViewControllers/2. Card/RepeatableSectionViewController.cs" "/Users/Garth/Projects/iSnap/iSnap/ApplicationContext.cs" "/Users/Garth/Projects/iSnap/iSnap/Utilities/DialogElementBuilder.cs" "/Users/Garth/Projects/iSnap/iSnap/DialogElements/MultiPickerElement.cs" "/Users/Garth/Projects/iSnap/iSnap/ViewControllers/Popup.cs" "/Users/Garth/Projects/iSnap/iSnap/Utilities/Util.cs" "/Users/Garth/Projects/iSnap/iSnap/ViewControllers/RotatingTabBar.cs" "/Users/Garth/Projects/iSnap/iSnap/Utilities/Graphics.cs" "/Users/Garth/Projects/iSnap/iSnap/DialogElements/SnapElement.cs" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/arrow.png,iSnap.Images.arrow.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/arrows.png,iSnap.Images.arrows.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/[email protected],[email protected]" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/back.png,iSnap.Images.back.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/forward.png,iSnap.Images.forward.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/[email protected],[email protected]" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/settings.png,iSnap.Images.settings.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/[email protected],[email protected]" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/direction_down.png,iSnap.Images.simplico.direction_down.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/direction_left.png,iSnap.Images.simplico.direction_left.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/direction_right.png,iSnap.Images.simplico.direction_right.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/direction_up.png,iSnap.Images.simplico.direction_up.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/document.png,iSnap.Images.simplico.document.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/document_add.png,iSnap.Images.simplico.document_add.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/document_delete.png,iSnap.Images.simplico.document_delete.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/document_edit.png,iSnap.Images.simplico.document_edit.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/document_search.png,iSnap.Images.simplico.document_search.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/document_warning.png,iSnap.Images.simplico.document_warning.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/player_fastforward.png,iSnap.Images.simplico.player_fastforward.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/player_pause.png,iSnap.Images.simplico.player_pause.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/player_play.png,iSnap.Images.simplico.player_play.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/player_record.png,iSnap.Images.simplico.player_record.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/player_rewind.png,iSnap.Images.simplico.player_rewind.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/player_stop.png,iSnap.Images.simplico.player_stop.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/simplico/search.png,iSnap.Images.simplico.search.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/glyphish/166-newspaper.png,iSnap.Images.glyphish.166-newspaper.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/glyphish/33-cabinet.png,iSnap.Images.glyphish.33-cabinet.png" "/res:/Users/Garth/Projects/iSnap/iSnap/Images/Snap/snap_logo_200p.gif,iSnap.Images.Snap.snap_logo_200p.gif" "/res:/Users/Garth/Projects/iSnap/iSnap/Info.plist,iSnap.Info.plist" Compilation succeeded - 36 warning(s) /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/ActivityElement.cs(33,30): warning CS0114: `MonoTouch.Dialog.ActivityElement.GetHeight(MonoTouch.UIKit.UITableView, MonoTouch.Foundation.NSIndexPath)' hides inherited member `MonoTouch.Dialog.UIViewElement.GetHeight(MonoTouch.UIKit.UITableView, MonoTouch.Foundation.NSIndexPath)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(1373,30): (Location of the symbol related to previous warning) /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(587,49): warning CS0108: `MonoTouch.Dialog.StyledStringElement.Accessory' hides inherited member `MonoTouch.Dialog.StringElement.Accessory'. Use the new keyword if hiding was intended /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(517,49): (Location of the symbol related to previous warning) /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(629,49): warning CS0108: `MonoTouch.Dialog.ImageStringElement.Accessory' hides inherited member `MonoTouch.Dialog.StringElement.Accessory'. Use the new keyword if hiding was intended /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(517,66): (Location of the symbol related to previous warning) /Users/Garth/Projects/iSnap/iSnap/DialogElements/SinglePickerElement.cs(19,28): warning CS0108: `iSnap.SinglePickerGroup.Selected' hides inherited member `MonoTouch.Dialog.RadioGroup.Selected'. Use the new keyword if hiding was intended /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(1767,28): (Location of the symbol related to previous warning) /Users/Garth/Projects/iSnap/iSnap/DialogElements/SinglePickerElement.cs(33,31): warning CS0108: `iSnap.SinglePickerElement.Group' hides inherited member `MonoTouch.Dialog.RadioElement.Group'. Use the new keyword if hiding was intended /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(708,31): (Location of the symbol related to previous warning) /Users/Garth/Projects/iSnap/iSnap/SnapCard/Section_FormulaCalculation.cs(156,31): warning CS0168: The variable `e' is declared but never used /Users/Garth/Projects/iSnap/iSnap/SnapCard/Section_FormulaCalculation.cs(323,15): warning CS0162: Unreachable code detected /Users/Garth/Projects/iSnap/iSnap/SnapCard/Section_FormulaCalculation.cs(368,20): warning CS0219: The variable `parentSectionName' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/SnapCard/Section.cs(514,11): warning CS0168: The variable `test' is declared but never used /Users/Garth/Projects/iSnap/iSnap/SnapCard/Section.cs(514,11): warning CS0168: The variable `test' is declared but never used /Users/Garth/Projects/iSnap/iSnap/SnapCard/Serialization.cs(122,14): warning CS0219: The variable `newer' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/SnapCard/Serialization.cs(189,14): warning CS0219: The variable `newer' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/DialogViewController.cs(221,30): warning CS0219: The variable `changed' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/ElementBadge.cs(133,48): warning CS0219: The variable `ff' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/ElementBadge.cs(132,45): warning CS0168: The variable `ns' is declared but never used /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(933,44): warning CS0219: The variable `useRect' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(1109,53): warning CS0219: The variable `idx' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/2. Card/CardSectionViewController.cs(83,30): warning CS0219: The variable `bRightButtonAction' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/DialogElements/TemplateElement.cs(14,27): warning CS0414: The private field `iSnap.TemplateElement._model' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/SnapCard/Item.cs(251,40): warning CS0414: The private field `Jrp.Snap.ChildSectionDataArray.m_sums' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(343,25): warning CS0414: The private field `MonoTouch.Dialog.FloatElement.Left' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/MonoTouch.Dialog/Elements.cs(343,31): warning CS0414: The private field `MonoTouch.Dialog.FloatElement.Right' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/DialogElements/CardListItemElement.cs(14,22): warning CS0414: The private field `iSnap.CardListItemElement._card' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/DialogElements/CardSectionElement.cs(13,51): warning CS0414: The private field `iSnap.CardSectionElement.vc' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/DialogElements/CardSectionElement.cs(14,30): warning CS0414: The private field `iSnap.CardSectionElement._cardSectionModel' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/1. Card Templates/CardListViewController.cs(18,36): warning CS0414: The private field `iSnap.CardListViewController._viewController' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/2. Card/CardSectionViewController.cs(18,29): warning CS0414: The private field `iSnap.CardSectionViewController.bRightButtonAction' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/2. Card/CardSectionViewController.cs(21,22): warning CS0414: The private field `iSnap.CardSectionViewController.hasSections' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/2. Card/CardSectionViewController.cs(22,22): warning CS0414: The private field `iSnap.CardSectionViewController.hasItems' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/3. Tools/ToolsViewController.cs(19,36): warning CS0414: The private field `iSnap.ToolsViewController._viewController' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/3. Tools/ToolsViewController.cs(20,29): warning CS0414: The private field `iSnap.ToolsViewController._cards' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/1. Card Templates/TemplateListViewController.cs(18,24): warning CS0649: Field `iSnap.TemplateListViewController.sectionHeaderView' is never assigned to, and will always have its default value `null' /Users/Garth/Projects/iSnap/iSnap/ViewControllers/1. Card Templates/TemplateListViewController.cs(20,40): warning CS0414: The private field `iSnap.TemplateListViewController._viewController' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/2. Card/RepeatableSectionViewController.cs(89,22): warning CS0414: The private field `iSnap.RepeatableSectionViewController.hasSections' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/ViewControllers/2. Card/RepeatableSectionViewController.cs(90,22): warning CS0414: The private field `iSnap.RepeatableSectionViewController.hasItems' is assigned but its value is never used /Users/Garth/Projects/iSnap/iSnap/DialogElements/MultiPickerElement.cs(129,31): warning CS0414: The private field `iSnap.MultiPickerElement._item' is assigned but its value is never used Compiling interface definitions ibtool "/Users/Garth/Projects/iSnap/iSnap/MainWindow.xib" --compile "/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/MainWindow.nib" Copying content files Copying '/Users/Garth/Projects/iSnap/iSnap/CardData/bdd3576f-97fd-4250-b062-fec261db5175/753728296.dat' to '/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/CardData/bdd3576f-97fd-4250-b062-fec261db5175/753728296.dat' Copying '/Users/Garth/Projects/iSnap/iSnap/CardData/bdd3576f-97fd-4250-b062-fec261db5175.snap' to '/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/CardData/bdd3576f-97fd-4250-b062-fec261db5175.snap' Build complete -- 0 errors, 36 warnings Compiling to native code /Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev "/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll" -debug -nolink "-sdk=4.2" -v -v -v "/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.exe" Framework is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk Copied /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.exe to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/iSnap.exe Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/mscorlib.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/monotouch.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/System.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/Mono.Security.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/System.Core.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/System.Xml.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/System.Data.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Data.Tds.dll to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/Mono.Data.Tds.dll Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Transactions.dll to /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/System.Transactions.dll MONO_PATH=/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=full,static,asmonly,soft-debug,iphone-abi,outfile=/var/folders/yD/yDMsZ27zHUqEHo+oJI7kmk+++TI/-Tmp-/tmpc91c21.tmp/iSnap.exe.s "/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/iSnap.exe" Mono Ahead of Time compiler - compiling assembly /Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/iSnap.exe * Assertion at ../../../../mono/mini/method-to-ir.c:2649, condition `method->is_inflated && mono_method_get_context (method)->method_inst' not met Compilation exited with code 134, command: MONO_PATH=/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --debug --aot=full,static,asmonly,soft-debug,iphone-abi,outfile=/var/folders/yD/yDMsZ27zHUqEHo+oJI7kmk+++TI/-Tmp-/tmpc91c21.tmp/iSnap.exe.s "/Users/Garth/Projects/iSnap/iSnap/bin/iPhone/Debug/iSnap.app/iSnap.exe" ---------------------- Done ---------------------- Build: 1 error, 37 warnings (In reply to comment #1) > Are you compiling the library as a monotouch library or in Visual Studio? It > sounds like you're building it in VisualStudio and the library probably has a > reference to some type that monotouch does not implement, which will cause the > linker to fail. > > Could you please add -v -v -v to your "Extra Arguments" and attach the build > output to the bug report. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
