Build for iOS results in a black screen before the splash screen and remains forever.

I have a Unity application that works fine on android devices, but in iOS, it results in a black screen before the splash screen appears. There are no crashes, and the backtrace contains this. Can Anyone help me out to solve this? Thank you!

I have a Unity application that works fine on android devices, but in iOS, it results in a black screen before the splash screen appears. There are no crashes, and the backtrace contains this. Can Anyone help me out to solve this? Thank you!

[UniversalDeepLink load]

[UniversalDeepLink swizzle]

Added instance method \_Universal_Deep_Link_Plugin_Application:didFinishLaunchingWithOptions:` of UniversalDeepLinkAppDelegate to UnityAppController with success`

Exchanged instance method \_Universal_Deep_Link_Plugin_Application:didFinishLaunchingWithOptions:` with `application:didFinishLaunchingWithOptions:` in UnityAppController`

Replaced instance method \application:didFinishLaunchingWithOptions:` of UniversalDeepLinkAppDelegate from UnityAppController with success`

Added instance method \_Universal_Deep_Link_Plugin_Application:openURL:options:` of UniversalDeepLinkAppDelegate to UnityAppController with success`

Instance method \application:openURL:options:` not found on class UnityAppController`

Instance method \application:openURL:options:` not found on target class UnityAppController`

Added instance method \_Universal_Deep_Link_Plugin_Application:openURL:sourceApplication:annotation:` of UniversalDeepLinkAppDelegate to UnityAppController with success`

Exchanged instance method \_Universal_Deep_Link_Plugin_Application:openURL:sourceApplication:annotation:` with `application:openURL:sourceApplication:annotation:` in UnityAppController`

Replaced instance method \application:openURL:sourceApplication:annotation:` of UniversalDeepLinkAppDelegate from UnityAppController with success`

Added instance method \application:continueUserActivity:restorationHandler:` of UniversalDeepLinkAppDelegate to UnityAppController with error`

Added instance method \_Universal_Deep_Link_Plugin_Application:continueUserActivity:restorationHandler:` of UniversalDeepLinkAppDelegate to UnityAppController with success`

Exchanged instance method \_Universal_Deep_Link_Plugin_Application:continueUserActivity:restorationHandler:` with `application:continueUserActivity:restorationHandler:` in UnityAppController`

Replaced instance method \application:continueUserActivity:restorationHandler:` of UniversalDeepLinkAppDelegate from UnityAppController with success`

[LinkerManager load]

Built from '2018.2/release' branch, Version '2018.2.13f1 (83fbdcd35118)', Build type 'Release', Scripting Backend 'il2cpp'

-> registered mono modules 0x1044c2d90

You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.

FATAL: OneSignal AppId format is invalid.

Example: 'b2f7f966-d8cc-11eg-bed1-df8f05be55ba'

[UniversalDeepLinkDelegate v1111]

[UniversalDeepLinkDelegate application:<UIApplication: 0x149f1d6f0> didFinishLaunchingWithOptions:(null)]

-> applicationDidFinishLaunching()

[Warning] Trying to set delaysTouchesBegan to NO on a system gate gesture recognizer - this is unsupported and will have undesired side effects

[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](https://goo.gl/ctyzm8).`

2022-09-15 12:19:02.311 megarun[46512] <Error> [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](https://goo.gl/ctyzm8).`

[connection] nw_resolver_start_query_timer_block_invoke [C1] Query fired: did not receive all answers in time for graph.facebook.com:443

[connection] nw_resolver_start_query_timer_block_invoke [C2] Query fired: did not receive all answers in time for graph.facebook.com:443

-> applicationWillResignActive()

-> applicationDidEnterBackground()

Looks like Firebase is angry.

To isolate, try rip out 100% of firebase stuff (I am assuming you are correctly using source control so all the damage can be instantly reverted with one click!) and build your app to prove it runs on iOS, then go back and troubleshoot the firebase installation, go through all the setup steps, etc.

Firebase is unfortunately one of the most challenging libraries to get right, mostly because they “try to be smart” and don’t quite make it in many cases.

Hi @Kurt-Dekker ,
Thank you very much. It was the Firebase SDK. Completely wiping the SDK up and re-adding a newer version did the work. Appreciate your help and am Sorry for the late reply!

1 Like