Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6714397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:29:29+00:00 2026-05-26T08:29:29+00:00

I have an iPad application that I have been developing on simulator just fine

  • 0

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

UPDATE:
I finally nailed down my issue to two things.

  1. Generics and value-types don’t play
    well together when AOT is used (and that’s required to execute on iOS
    devices). So I needed to change a query:
    From: ‘CSDatabase.RunQuery(“select max(VersionNbr) from schema_version”).FirstOrDefault();’
    To: CSDatabase.RunQuery(“select max(VersionNbr) from schema_version”).First();

  2. Next I need to add the argument for the trampolines (-aot “nimt-trampolines=2048”) and only linked monotouch sdk during build. That cleared up the rest of my issues.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:29:30+00:00Added an answer on May 26, 2026 at 8:29 am

    There are two issues here.

    The second one looks caused by:
    Invalid SDK specified: 3.2

    Simply you do not have the 3.2 SDK installed (it’s not shipped by default with iOS5 SDK). Try the following command:

    /Developer/MonoTouch/usr/bin/mtouch --debugsim=/path/to/your.app --sdk=5.0
    

    and it should work fine.

    As for the first issue there’s not much detail to help you. If no crash dump is produced (it happens, e.g. when not enough memory is available) then try the following:

    a) open a terminal window on your computer;

    b) execute the following command

    /Developer/MonoTouch/usr/bin/mtouch --logdev
    

    c) start application on device;

    d) make it crash (seems automatic in this case 😉

    e) copy/paste the device log into your question (if small) or fill a bug report at http://bugzilla.xamarin.com (if large)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an iPad application. I have been provided with a PNG image that
I have been developing an iPad application in which I want to implement multithreading,
I'm currently developing an iPad application that integrates MapKit. But I have a small
I have an iPad application that pulls in all of its data from an
I have a plain XCode CoreData enabled iPhone/iPad navigation application. In this I have
I've been working on importing XML into an iPad Core Data application. I have
I've been working on an iPad application that has about 15 view controllers. Some
Recently I have been tasked with creating an application for a business that basically
I have an iPad application that can be used in all four view modes
I want to create an iPad application that is pretty much just a catalog

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.