[MonoTouch] Monotouch App will not launch on Device but works in Simulator
makeone
rmakerson3 at gmail.com
Wed Oct 26 09:08:09 EDT 2011
Hey Sebastien,
I was able to figure out what was going on. Using '<int>' in conjunction
with 'FirstOrDefault' was my biggest issues i.e. 'ar curSchema =
CSDatabase.RunQuery<int>("select max(VersionNbr) from schema_version"
).FirstOrDefault();'
Next was adding the argument for the trampolines and only linking monotouch
sdk during build.
Thanks,
-Rick
On Tue, Oct 25, 2011 at 10:00 PM, Sebastien Pouliot [via MonoTouch] <
ml-node+s2284126n3938979h31 at n4.nabble.com> wrote:
> Hello Rick,
>
> I think your email was stuck in the moderation queue.
>
> If not then my advice from stackoverflow [1] still holds. You'll need
> to provide more data to enable us to help you.
>
> [1]
> http://stackoverflow.com/questions/7840603/monotouch-app-will-not-launch-on-device-but-works-fine-in-simulator/7840990#7840990
>
> Regards,
> Sebastien
>
> On Thu, Oct 20, 2011 at 1:57 PM, makeone <[hidden email]<http://user/SendEmail.jtp?type=node&node=3938979&i=0>>
> wrote:
>
> > I have an iPad application that I have been developing on simulator just
> fine
> > (xcode 4, md 2.8, mt 5). However, when I try to deploy to the device the
> > application crashes while launching. There are no crash logs in xcode and
>
> > the console window is not displaying any errors.
> >
> > However, when I run monotouch from the terminal I get the following
> output:
> >
> > Rich-MacBook-Pro:~ rich3$ /Developer/MonoTouch/usr/bin/mtouch
> >
> --debugsim=$/private/var/mobile/Applications/31A80564-0CEF-4F4B-AE9D-6A1938510393
>
> > Invalid SDK specified: 3.2
> > Stacktrace:
> >
> > at (wrapper managed-to-native)
> > MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_intptr_intptr_bool
> > (intptr,intptr,intptr,intptr,bool) <0xffffffff>
> > at MonoTouch.Foundation.NSObject.Dispose (bool) <0x0009f>
> > at MonoTouch.Foundation.NSObject.Finalize () <0x00016>
> > at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__
> > (object,intptr,intptr,intptr) <0xffffffff>
> >
> > Native stacktrace:
> >
> > 0 mtouch 0x000ec183 WriteZStream +
> 955779
> > 1 mtouch 0x0001bd4f WriteZStream +
> 102735
> > 2 libsystem_c.dylib 0x9020459b _sigtramp + 43
> > 3 ??? 0xffffffff 0x0 +
> 4294967295
> > 4 Foundation 0x9a0603de
> > -[NSObject(NSThreadPerformAdditions)
> > performSelectorOnMainThread:withObject:waitUntilDone:] + 160
> > 5 ??? 0x027d5884 0x0 + 41769092
> > 6 ??? 0x027d0e40 0x0 + 41750080
> > 7 ??? 0x027d559f 0x0 + 41768351
> > 8 ??? 0x025e5551 0x0 + 39736657
> > 9 mtouch 0x001a76c4 WriteZStream +
> 1723076
> > 10 mtouch 0x001a968a WriteZStream +
> 1731210
> > 11 mtouch 0x001a98c4 WriteZStream +
> 1731780
> > 12 mtouch 0x002735c1 WriteZStream +
> 2558401
> > 13 mtouch 0x00273677 WriteZStream +
> 2558583
> > 14 mtouch 0x002b8b0e WriteZStream +
> 2842382
> > 15 mtouch 0x002f31d8 WriteZStream +
> 3081688
> > 16 libsystem_c.dylib 0x901aced9 _pthread_start
> + 335
> > 17 libsystem_c.dylib 0x901b06de thread_start +
> 34
> >
> > Debug info from gdb:
> >
> > /tmp/mono-gdb-commands.1eukTW:1: Error in sourced command file:
> > unable to debug self
> >
> > =================================================================
> > Got a SIGSEGV while executing native code. This usually indicates
> > a fatal error in the mono runtime or one of the native libraries
> > used by your application.
> > =================================================================
> >
> > Abort trap: 6
> >
> > --
> > View this message in context:
> http://monotouch.2284126.n4.nabble.com/Monotouch-App-will-not-launch-on-Device-but-works-in-Simulator-tp3922934p3922934.html
> > Sent from the MonoTouch mailing list archive at Nabble.com.
> > _______________________________________________
> > MonoTouch mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=3938979&i=1>
> > http://lists.ximian.com/mailman/listinfo/monotouch
> >
> _______________________________________________
> MonoTouch mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=3938979&i=2>
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://monotouch.2284126.n4.nabble.com/Monotouch-App-will-not-launch-on-Device-but-works-in-Simulator-tp3922934p3938979.html
> To unsubscribe from Monotouch App will not launch on Device but works in
> Simulator, click here<http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3922934&code=cm1ha2Vyc29uM0BnbWFpbC5jb218MzkyMjkzNHwxMjEwMjU4MzI4>.
>
>
--
View this message in context: http://monotouch.2284126.n4.nabble.com/Monotouch-App-will-not-launch-on-Device-but-works-in-Simulator-tp3922934p3940547.html
Sent from the MonoTouch mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111026/13ff9678/attachment-0001.html
More information about the MonoTouch
mailing list