question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load NIB in bundle: 'LaunchScreen' - Upgrade 0.61.5 to 0.63.3

See original GitHub issue

Environment

System:
    OS: macOS 10.15.7
    CPU: (8) x64 Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
    Memory: 153.91 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.18.4 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.6 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.9.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
    Android SDK:
      API Levels: 23, 25, 26, 27, 28, 29
      Build Tools: 23.0.1, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.1, 28.0.3, 29.0.2
      System Images: android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.0 AI-193.6911.18.40.6626763
    Xcode: 12.0.1/12A7300 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_181 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: ^16.13.1 => 16.13.1 
    react-native: ^0.63.3 => 0.63.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Upgrading version

0.63.3

Description

After upgrading RN from 0.61.5 to 0.63.3, my app seems to be crashing immediately on launch with error message: Thread 1: "Could not load NIB in bundle: 'NSBundle </Users/Rezinka/Library/Developer/CoreSimulator/Devices/879DF873-0AC0-4846-87C1-132A14D17A09/data/Containers/Bundle/Application/1466901C-CC86-45A2-9D30-6902FB61B4A7/FridayApp.app> (loaded)' with name 'LaunchScreen'"

image

Followed the upgrade instructions from here: https://github.com/react-native-community/upgrade-support/issues/13

Any help / ideas is much appreciated.

XCode: 12.0.1, Node: 12.18.4

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

5reactions
markl-vespercommented, Sep 6, 2021

Hi recently migrated to RN 0.65.1 and after re-implementing RN splash-screen and using LaunchScreen.storyboard I also encountered this issue

Basically was ready to give up and move on to other tasks so I commented out both options

//  [RNSplashScreen show];
//  [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView];

as I had been testing both.

Guess what?

Build works and app doesn’t crash AND I’m still seeing the splash screen

4reactions
AmitM30commented, May 20, 2021

Closing this. Got it working by adding LaunchScreen.storyboard to Copy Bundle Resources

image

EDIT (May 2021): Need to remove LaunchScreen.xib and add LaunchScreen.storyboard as referenced here. Then add the reference to your project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not load NIB in bundle - ios - Stack Overflow
the error means that there is no .xib file with "JRProvidersController" name. recheck whether JRProvidersController.xib exists. you will load .
Read more >
Could not load NIB in bundle: 'NSBundle' in ios?
Hi, I have a view that contains a tableview in my app. I use cellForRowAtIndexPath function to populate tableview. But it crashes sometimes...
Read more >
Xcode - Could Not Load Nib File Bundle - ADocLib
Solution: This error can occur when you rename files outside of XCode. To solve it you can just remove the files from your...
Read more >
Cocoapod custom library, could not load NIB Bundle - Reddit
Somewhere you are telling it to load the nib from the main (application) bundle. Load it from your framework bundle using bundle for...
Read more >
Unity sample on iOS gives SPXERR_MIC_ERROR - IssueHint
Issue Title Created Date Comment Count Updated Date Gamepad controls broken after remap 9 2022‑07‑26 2022‑09‑16 Un‑responsive touch controls 3 2022‑01‑24 2022‑09‑16 EXP try out traefik...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found