Forum Xamarin Xamarin.iOS

App Crash on startup when deploying on a real device

PiccoPicco USMember ✭✭

Hi all,
I have a serious problem when I launch my app on an iPhone 6s. It crash after the splash screen without entering in debug (doesn't stop in main function nor in AppDelegate). I try to unload some class and then it works. So I try to investigate more and i found that if i change some class name it works without unload that class.. but for other I need to comment some methods or it start to crash at startup again.

I use VS with Xamarin extension (version 4.0.3)

Posts

  • VisionsInCodeVisionsInCode USMember ✭✭

    I also got this, very strange. Everything just worked fine. Now I have the same as above, it just crashes.
    It also happens on my iphone 6.
    I use Xamarin Studio Enterprise Version 5.10.3 (build 51)

  • PiccoPicco USMember ✭✭

    I found the problems.
    In my case:

    • need to use Link SDK only instead of Link All Assemblies
    • need to edit Info.plist accordint to the documentation about the Facebook iOS component (see https://components.xamarin.com/gettingstarted/facebookios)
    • need to change the path of the images because on simulator the path is case insensitive but on real device is case sensitive (for example i need to change new UIImage("images/flag.png") in new UIImage("Images/Flag.png") according to the lettercase )

    Hope to help

Sign In or Register to comment.