locked
iPhone XS Max crash RRS feed

  • Question

  • User356529 posted

    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

    Wednesday, May 8, 2019 8:34 AM

Answers

  • User356529 posted

    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.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, May 15, 2019 3:23 AM

All replies

  • User74 posted

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

    Wednesday, May 8, 2019 10:28 AM
  • User356529 posted

    @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

    Wednesday, May 8, 2019 11:49 AM
  • User369978 posted

    Does the crash happen on simulator or physical device ?

    For crash catching you could use App Center .

    Wednesday, May 8, 2019 12:36 PM
  • User254340 posted

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

    Wednesday, May 8, 2019 1:36 PM
  • User356529 posted

    @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

    Thursday, May 9, 2019 1:02 AM
  • User356529 posted

    @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);
    
    Thursday, May 9, 2019 1:03 AM
  • User369978 posted

    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.

    Tuesday, May 14, 2019 2:42 AM
  • User356529 posted

    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.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, May 15, 2019 3:23 AM
  • User384903 posted

    Did you ever work out which library it was?

    Wednesday, January 22, 2020 1:58 PM
  • User356529 posted

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

    No. Because I am not testing it one by one

    Thursday, January 23, 2020 3:31 AM
  • User390131 posted

    @"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.

    Tuesday, September 29, 2020 2:57 PM
  • User356529 posted

    @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

    Wednesday, September 30, 2020 1:03 AM