App immediately close after launch sice IOS 10 update

Hello,

I upgraded XCode to 8 to allow use of IOS10. I had not the choice.
I use IPhone Simulator.
Now it's done and when I run a simple PCL app, it opens and close immediately.
One of you had the same issue ?
You found a solution ?

Thanks,

Laurent

Posts

  • kentuckerkentucker USMember ✭✭✭✭✭

    More then likely you are getting an exception at startup since the upgrade. I would try and catch the unhandled exception like shown here to see what it is

    https://forums.xamarin.com/discussion/8939/best-global-exception-handler-method

  • Lolo2ParisLolo2Paris FRMember

    I did this :

        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            // if you want to use a different Application Delegate class from "AppDelegate"
            // you can specify it here.
            UIApplication.Main(args, null, "AppDelegate");
        }
    
        private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            errorService.HandleUnhandledError(sender, "unhandled error");
        }
    

    The program exit before reaching the First instruction and never enter in the error handler.

    I did something wrong ?

    Thanks for your help.

  • Lolo2ParisLolo2Paris FRMember

    Hello,

    Today, I executed the app with Xamarin Studio in my Mac, the simulator works.
    If I execute the app with Visual Studio 2015, the simulator exit immediately.

    I try o update my visual studio.

    Regards

Sign In or Register to comment.