Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin.iOS app launch crash, no crash logs and no failure message in console

I am trying to run my application in the latest version of Xamarin studio 5.10.2 with iOS 9.2 simulator and device, but each and every time when I try to run my app my app will just display splash screen and immediately it crashes. No crash logs is getting generated nor a failure message in console.

I tried clean build, cleaning Xamarin studio cache data, resetting simulator, cloned a fresh copy of my project but unfortunately none of these things are helping me out :(.

P.S: The same app and the same git branch is working like a charm for my team members inn their machines, I just wonder with this strange behaviour of Xamarin studio! ; Other projects are running successfully in my machine except one of the main project.

Any help in resolving this issue is much appreciated in advance.

like image 334
Splendor_iOS Avatar asked Mar 14 '23 10:03

Splendor_iOS


1 Answers

Try to catch any unhandled exceptions by adding this to the Application static void Main

AppDomain.CurrentDomain.UnhandledException += (o, e) => 
{ 
    #if DEBUG
        Debugger.Break ();
    #endif
};

TaskScheduler.UnobservedTaskException += (o, e) => 
{
    #if DEBUG
        Debugger.Break();
    #endif
};

EDIT Also a good suggestion would be to install a crash analytics tool (like Hockeyapp) to catch any other crashes.

like image 50
iamIcarus Avatar answered Apr 24 '23 21:04

iamIcarus