Forum Xamarin Xamarin.iOS

iPhone XS Max crash

JimmyPun.6276JimmyPun.6276 USMember ✭✭

I complied an iOS app and try to deploy to different device.
But one of devices is iPhone XS Max with iOS 12.1.4.
When the app open in this device, the app crash immediately.
What should I do?

I am guessing the problem is due to the device is using A12 CPU which require the architect is ARM64e
but i do not find it in my visual studio.
XCode version 10.2.1
Xamarin iOS version 10.2.4

Tagged:

Best Answer

  • JimmyPun.6276JimmyPun.6276 USMember ✭✭
    Accepted Answer

    Found out some library make the app crash on iPhone X XS XR XS Max
    After removing it, it seem work now.
    Thanks all.> @ColeX said:

    Sorry, i don't have real device(iPhone XS Max) to test on .

    I suggest you provide a reproduction sample and file issue here : https://github.com/xamarin/xamarin-macios/issues.

    Thanks @ColeX
    I found out the issue luckily.
    I updated some packages from Nuget and remove some unused packages and it is ok now.

Answers

  • JohnHJohnH GBMember ✭✭✭✭✭

    Open the iOS project properties window, then on the iOS Build page set your architecture to include ARM64.

  • JimmyPun.6276JimmyPun.6276 USMember ✭✭

    @JohnH said:
    Open the iOS project properties window, then on the iOS Build page set your architecture to include ARM64.

    Already ARM64, Work on iPhone 6s, 7, iPad with iOS 12
    Perhaps some Library is not support? I am not sure.
    But I do not have the device for debugging. How can I obtain the crash log in this case

  • ColeXColeX Member, Xamarin Team Xamurai
    edited May 2019

    Does the crash happen on simulator or physical device ?

    For crash catching you could use App Center .

  • FinHorsleyFinHorsley USMember ✭✭

    @JimmyPun.6276 can you upload a screenshot of your iOS Build configuration page in settings? (Build > iOS Build)

  • JimmyPun.6276JimmyPun.6276 USMember ✭✭
    edited May 2019

    @FinHorsley said:
    @JimmyPun.6276 can you upload a screenshot of your iOS Build configuration page in settings? (Build > iOS Build)


    Here is the screenshots on release mode

  • JimmyPun.6276JimmyPun.6276 USMember ✭✭
    edited May 2019

    @ColeX said:
    Does the crash happen on simulator or physical device ?

    For crash catching you could use App Center .

    It only happen on physical device.
    I am try to implement app center crash logging but nothing got catch.
    The app seem crash before "FinishedLaunching", below in my code

          AppCenter.Start({iOS App Secret},
                   typeof(Analytics), typeof(Crashes));
            Crashes.SetEnabledAsync(true);
            global::Xamarin.Forms.Forms.Init();
    
            try
            {
                initLibrary();
            }catch(Exception ex)
            {
                Crashes.TrackError(ex);
            }
    
            LoadApplication(new App());
            try
            {
                setupTheme();
            }
            catch (Exception ex)
            {
                Crashes.TrackError(ex);
            }
    
    
            return base.FinishedLaunching(app, options);
    
  • ColeXColeX Member, Xamarin Team Xamurai

    Sorry, i don't have real device(iPhone XS Max) to test on .

    I suggest you provide a reproduction sample and file issue here : https://github.com/xamarin/xamarin-macios/issues.

  • JimmyPun.6276JimmyPun.6276 USMember ✭✭
    Accepted Answer

    Found out some library make the app crash on iPhone X XS XR XS Max
    After removing it, it seem work now.
    Thanks all.> @ColeX said:

    Sorry, i don't have real device(iPhone XS Max) to test on .

    I suggest you provide a reproduction sample and file issue here : https://github.com/xamarin/xamarin-macios/issues.

    Thanks @ColeX
    I found out the issue luckily.
    I updated some packages from Nuget and remove some unused packages and it is ok now.

  • Keab42Keab42 Member ✭✭

    Did you ever work out which library it was?

  • JimmyPun.6276JimmyPun.6276 USMember ✭✭

    @Keab42 said:
    Did you ever work out which library it was?

    No. Because I am not testing it one by one

  • Sunil_SolankiSunil_Solanki Member ✭✭
    edited September 29

    @JimmyPun.6276 & @ColeX I am also facing same issue after updating device to ios 14 iPhone X XS XR XS Max it stopped to work.
    Can you let us know which package were causing issue.

  • JimmyPun.6276JimmyPun.6276 USMember ✭✭

    @Sunil_Solanki said:
    @JimmyPun.6276 & @ColeX I am also facing same issue after updating device to ios 14 iPhone X XS XR XS Max it stopped to work.
    Can you let us know which package were causing issue.

    sorry @Sunil_Solanki
    I do not remember it

Sign In or Register to comment.