Search Unity

Black screen and crash for iOS?

Discussion in 'iOS and tvOS' started by roseportalgames, Jul 10, 2020.

  1. roseportalgames

    roseportalgames

    Joined:
    Aug 9, 2017
    Posts:
    173
    Hi everyone,

    Since the June 30 SDK 13.0 update by Apple, I can't get my app to run on new iPhones.

    It works great if I build it to my phone using XCode. But as soon as I play it without XCode (or with XCode open but just by opening the app on my phone), it has a black screen for 10 seconds then crashes.

    Does anyone have any advice on debugging this? Because it crashes during opening the app, Crashlytics is not useful. And I'm at loss what the issue could be. Maybe a wrong Deployment setting? I'm not sure. I didn't change anything.

    Thanks,
     
    Flexford likes this.
  2. Flexford

    Flexford

    Joined:
    Dec 8, 2016
    Posts:
    20
    I have same problem, and i know more info.
    Problem appeared after transition from Unity 2019.2.19 to Unity 2019.4.2.
    If app force close, then will crash and thread will be an infinity loop.
    The next open app will be with black screen ~ for 10 seconds, after which it will close.

    I think this is due to the removal of the code in a separate library (UnityFramework) and the new splash (storyboard) for Apple(Unity - How to add a launch-screen storyboard for iOS in Unity - App Store requirement by June 30, 2020 - Unity Forum).

    1.jpg 2.jpg 5.jpg 6.jpg
     
  3. Flexford

    Flexford

    Joined:
    Dec 8, 2016
    Posts:
    20
  4. Tortuap

    Tortuap

    Joined:
    Dec 4, 2013
    Posts:
    137
    Personal story : I had too many issues with Unity 2019.3, I had to downgrade to 2019.2.

    Now Unity has changed its startup path (code migrated into separate library UnityFramework), some 3rd party (Firebase and Ads Networks libraries) are producing deadlocks that makes the startup very long (adding many seconds before the Unity splash screen).

    In some specific cases those deadlocks were so long that the iOS watchdog process silently killed them to prevent deadlocks at startup (the app hasn't responded for 15s). See https://github.com/firebase/firebase-ios-sdk/issues/5463 and https://forum.unity.com/threads/uni...tchdog-transgression-crash-0x8badf00d.878620/

    One of this bug crushed my D0 retention from 25% to 3%. Neither Crashlytics nor Apple Connect analytics were reporting this issue.

    Stay away from 2019.3
     
    richardfu71 and TigerHix like this.
  5. nicolasgramlich

    nicolasgramlich

    Joined:
    Sep 21, 2017
    Posts:
    231
    @Flexford @Tortuap did you find a reliable solution to this issue? It's still happening for me on 2019.4.6.f1 and it for sure doesn't seem to help my retention :(
     
  6. Flexford

    Flexford

    Joined:
    Dec 8, 2016
    Posts:
    20
    No, i didn't, i just downgrade unity to 2019.2:)
     
  7. MildaGenius2

    MildaGenius2

    Joined:
    May 6, 2013
    Posts:
    19
  8. TigerHix

    TigerHix

    Joined:
    Oct 20, 2015
    Posts:
    69
    pistoleta likes this.
  9. pistoleta

    pistoleta

    Joined:
    Sep 14, 2017
    Posts:
    539
    Been working on Unity 2019.4.14 and got the issue just today when I downloaded iOS 14.2 beta on 1 of my devices.
    I'm going to try the workaround @TigerHix mentioned.
     
  10. pistoleta

    pistoleta

    Joined:
    Sep 14, 2017
    Posts:
    539
    Workaround working on iOS 14.2 beta :)

    Seems this bug has been around a few months, I dont understand how has not been fixed yet. In my case it just popped up on iOS 14.2 beta and they are going to release it really soon. I dont know what to think. :confused:
     
  11. onesharkdevelopers

    onesharkdevelopers

    Joined:
    Jun 27, 2019
    Posts:
    5
    This relates to our experience. We are fine on all IOS versions then on 14.2 we experience black screen crashes. Its the same error as depicted above. We are trying Unity 2019.2 like the wise man said. I'll report how it goes - for those feeling pain like ours.
     
  12. faixxi

    faixxi

    Joined:
    Mar 6, 2019
    Posts:
    5
    anybody found the solution?
     
  13. artour

    artour

    Joined:
    Mar 25, 2014
    Posts:
    3
    Like others, we ran into this issue and the workaround fixed it for us. The app works fine for everyone in Testflight, however, when we submit for review, it gets rejected because of a crash on load (that seems similar to the crash we see when we don't use the workaround). Has anyone encountered this in the app review process ? Has anyone successfully submitted an app with this workaround through the app review process with Apple ?
     
    shbosh and allpublic like this.
  14. allpublic

    allpublic

    Joined:
    Nov 10, 2020
    Posts:
    13
    facing this issue as well right now with 2021.1.11f and iPad.
    But I figured it's just the statusbar which flicker while starting the app.
    I was able to solve this to change the info.plist with:
    Code (Boo):
    1. <key>UIStatusBarHidden</key>
    2. <true/>
    3. <key>UIViewControllerBasedStatusBarAppearance</key>
    4. <false/>
     
    Last edited: Aug 19, 2021
  15. Andy1218

    Andy1218

    Joined:
    Aug 25, 2021
    Posts:
    2
    i have the same problem
     
  16. SuperByte_

    SuperByte_

    Joined:
    May 24, 2016
    Posts:
    2