Bug 6609 - Monotouch application craches on device
Summary: Monotouch application craches on device
Status: RESOLVED FEATURE
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-08-20 08:46 UTC by Eric
Modified: 2012-08-21 01:47 UTC (History)
2 users (show)

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

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description Eric 2012-08-20 08:46:53 UTC
I created a new Monotouch project with MonoDevelop. After the build I opened it in Debug Modus with the simpulator and it started (black screen) but that's waht I expected. If I set the configuration to debug/iphone the is the following error:

Please ensure your device is connected...
Connected to: Neolution’s iPad
error MT0000: Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com
System.ArgumentException: name is an unknown class
Parameter name: DTDKDeviceSupportFiles
at MonoTouch.ObjCRuntime.Class..ctor (string) <0x0006f>
at MonoTouch.Installation.Device.get_DeveloperImagePath () <0x001b7>
at MonoTouch.Installation.Device.MountDeveloperImage () <0x0001b>
at MonoTouch.Installation.Installer.KillApplication (MonoTouch.Installation.Device,string) <0x0002f>
at MonoTouch.Installation.Installer/<KillApplication>c__AnonStorey6.<>m__7 (MonoTouch.Installation.Device) <0x00017>
at MonoTouch.Installation.Installer/<ExecuteWithSession>c__AnonStorey3.<>m__2 (object,System.EventArgs) <0x000ef>
at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0x0006e>
at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0x0003f>
at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () <0x00003>
at MonoTouch.CoreFoundation.CFRunLoop.Run () <0x0000b>
at MonoTouch.Installation.Installer.ExecuteWithSession (MonoTouch.Installation.Installer/Executor) <0x000cf>
at MonoTouch.Installation.Installer.KillApplication (string) <0x0005f>
at MTouch.Main2 (string[]) <0x03c27>
at MTouch.Main (string[]) <0x0001f>

MonoDevelop: 3.0.3.5
MonoTouch: 5.2.13
Mono: 2.10.9 
OS: MacOS 10.6.8
iOS: 4.3 (iPad)


I updated the computer from earlier versions of Monodevelop, Mono and Monotouch.
Comment 1 Sebastien Pouliot 2012-08-20 09:18:52 UTC
Please use MonoDevelop's main menu, then "About MonoDevelop" menu item, "Version Information" tab and copy-paste the information from there. That will include everything we need (including the version of Xcode being used).
Comment 2 Eric 2012-08-20 09:31:10 UTC
MonoDevelop 3.0.3.5
Installation UUID: 1a7a9149-453a-476e-ae89-dbfd39f4438b
Runtime:
	Mono 2.10.9 (tarball)
	GTK 2.24.10
	GTK# (2.12.0.0)
	Package version: 210090011
Mono for Android not installed
Apple Developer Tools:
	 Xcode 4.0.2 (99)
	 Build 4A2002a
Monotouch: 5.2.13
Build information:
	Release ID: 30003005
	Git revision: 3d53e1366933298a3fe0cdc6d0f7d00c9916564c-dirty
	Build date: 2012-07-27 19:06:34+0000
	Xamarin addins: 73ecde7c48d943adb6e33d511d3cf0661d006801
Operating System:
	Mac OS X 10.6.8
	Darwin neolutions-Mac-mini.local 10.8.0 Darwin Kernel Version 10.8.0
	    Tue Jun  7 16:33:36 PDT 2011
	    root:xnu-1504.15.3~1/RELEASE_I386 i386
Comment 3 Sebastien Pouliot 2012-08-20 10:45:54 UTC
You'll need to update to Xcode 4.2(.x) to use the latest MonoTouch 5.2.x releases as the code/libraries used to talk between the Mac and the device differs.
Comment 4 Eric 2012-08-21 01:47:27 UTC
Thank you. That solved it.