Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

iOS build crash after startup

Discussion in 'iOS and tvOS' started by alipaknahad, May 15, 2021.

  1. alipaknahad

    alipaknahad

    Joined:
    Dec 22, 2020
    Posts:
    10
    Hey, guys,
    We have a published game on the App Store and since last month I am not able to build the game on iOS platform. We are using:
    • Unity 2020.3.2 LTS
    • Unity IAP 2.2.2
    • GoogleMobileAds 5.4.0
    • FireBase 7.*.*
    • CloudOnce 2.7.2
    • iOS target: 11-12-13-14
    Ever since last month, I am facing this issue that the game stops at a specific moment while initializing everything(firebase, IAP, play services-analytics, etc.). In XCode, I get the following log and the game stops functioning and freeze on the loading page:
    Image 5-15-21 at 9.02 PM.jpg

    And the last logs are :

    [B]2021-05-15 20:55:56.709341+0430 MergeBike[2517:2137239] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles[/B]

    [B]2021-05-15 20:55:56.711992+0430 MergeBike[2517:2137239] [MC] Reading from public effective user settings.[/B]

    [B]2021-05-15 20:55:56.816025+0430 MergeBike[2517:2137370] 7.5.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.[/B]

    [B]2021-05-15 20:55:56.818306+0430 MergeBike[2517:2137370] 7.5.0 - [Firebase/Core][I-COR000029] Attempted to register protocol FIRAnalyticsInterop, but it already has an implementation.[/B]

    [B]2021-05-15 20:55:56.840746+0430 MergeBike[2517:2137363] 7.5.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:[/B]

    [B]https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging[/B]

    [B]to ensure proper integration.[/B]

    [B]2021-05-15 20:55:56.842530+0430 MergeBike[2517:2137239] [Firebase/Crashlytics] Version 7.5.0[/B]

    [B]2021-05-15 20:55:56.917095+0430 MergeBike[2517:2137239] <Google> To get test ads on this device, set: GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers = @[ @"651a04bcbabbf354e529ae406e29f9aa" ];[/B]

    [B]Setting up 1 worker threads for Enlighten.[/B]

    [B] Thread -> id: 17049f000 -> priority: 1 [/B]

    [B]2021-05-15 20:55:57.452607+0430 MergeBike[2517:2137239] AppLovinAdapter: AppLovin adapter version: 6.14.6.0[/B]

    [B]2021-05-15 20:55:57.464843+0430 MergeBike[2517:2137239] AppLovinAdapter: AppLovin SDK version: 6.14.6[/B]

    [B]2021-05-15 20:55:58.684336+0430 MergeBike[2517:2137239] FCM: Initialize Firebase Messaging[/B]

    [B]2021-05-15 20:55:58.688433+0430 MergeBike[2517:2137239] FCM: Using FCM senderID 684483258394[/B]

    [B]2021-05-15 20:55:58.689489+0430 MergeBike[2517:2137239] FCM: Retrieve registration token[/B]

    [B]libc++abi.dylib: terminating with uncaught exception of type Il2CppExceptionWrapper[/B]

    terminating with uncaught exception of type Il2CppExceptionWrapper


    The weird thing is that everything works pretty well with the android build, but in the iOS build, I'm getting this.
    Also, I'm pretty sure there is something up in connecting to wether Firebase, Unity IAP, or other ads services while trying to catch some data online. Because when I try to play offline the game is functioning great and when I start the game online this freeze comes up.

    What I have tried to do until now:
    • Reinstalling and reimporting different versions of IAP, Firebase, Google mobile ads
    • Changing Unity versions to 2020.3.0 and 2020.3.6
    • Changing some build phases (which is a pain in the ...)

    I appreciate any help. Thank you so much.
     
    RafalaelDdS likes this.
  2. bertancoban

    bertancoban

    Joined:
    Jul 13, 2017
    Posts:
    1
    hey, have you found a solution to your problem
     
  3. RafalaelDdS

    RafalaelDdS

    Joined:
    Nov 2, 2016
    Posts:
    1
    Also looking for a solution to this problem.
     
  4. alipaknahad

    alipaknahad

    Joined:
    Dec 22, 2020
    Posts:
    10
    My problem was solved when I installed a lower version of the firebase packages. I believe last time I was working on that project this problem was fixed in tha latest version of firebase (I guess version 8.x). Looked like it was all because of firebase initializing it was getting hung up in the middle of api request and I really was not able to find the exact problem. I even tried to contact the firebase support but they could not help me either.