On Wed, May 30, 2012 at 3:06 PM, glinkot <[email protected]> wrote: > Hi, > > I have a couple of questions I'd really appreciate help with. I tried MT > briefly with the simulator and decided to buy it along with joining the dev > program. My issues are: > > a) Programs work on the simulator but immediately crash on run when deployed > to my (latest model running 5.1) iPad. This is before doing anything! Eg > if I create a new ipad 'Utility' solution or 'Single view' application, > change nothing and run it on the simulator, it runs. I then deploy it to > the device, it installs but crashes. Naming the app etc doesn't help. >
Have you setup your ipad as a development device? If not, plug it in, run xcode, find the organiser (it's in the window menu I think). In there, find your ipad in the list and hit "use as a development device". This adds all the certificates you need to the device. You will also want to setup auto-download of certificates, in the same organiser dialog (you login with your developer.apple.com credentials) A start + crash without obvious reason is usually a certificate issue. You can also see the console log of the device in the same area in xcode (it's VERY handy) > b) Doing debugging causes a dialog in MT, which in many cases disappears > after 2-3 seconds before I get to read it. The error shown is: > > MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. > Name: NSUnknownKeyException Reason: [<UIApplication 0x658ee0> > setValue:forUndefinedKey:]: this class is not key value coding-compliant for > the key view. > at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String > principalClassName, System.String delegateClassName) [0x00042] in > /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 > at Utility.Application.Main (System.String[] args) [0x00000] in > /Users/Mark/Projects/Utility/Utility/Main.cs:17 > > Line 17 in main.cs is: > UIApplication.Main (args, null, "AppDelegate"); > The 'usings' etc are all present (this is the MT iPad 'Utility' solution > unmodified) > > Why would an empty (but functional) app crash like this? Why does my error > disappear? Is the trace written to a file? See above for the trace. the key coding thing is something to do with the XIB's. It's not a monotouch specific error tho: http://stackoverflow.com/questions/10152872/this-class-is-not-key-value-coding-compliant-for-the-key-view (I suspect it may be a problem with the templates in MonoDevelop, for doing iPad apps, but I'm not sure) Hope that helps a bit Nic -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p 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 London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
