react-native-community / upgrade-support

A central community-backed place to request and give help when upgrading your app.
MIT License
261 stars 2 forks source link

Could Load NIB Bundle : upgrading from RN0.61.5 to RN0.64.2 #172

Closed Hezron-Nelapati closed 3 years ago

Hezron-Nelapati commented 3 years ago

Environment

System: OS: macOS 11.4 CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz Memory: 193.96 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 15.11.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 7.6.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 Android SDK: API Levels: 26, 28, 29, 30 Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0 System Images: android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6514223 Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild Languages: Java: 1.8.0_222 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.2 => 0.64.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Things I’ve done to figure out my issue

I've run the app using xcode and i got the exception :: could not load NIB Bundle

Upgrading version

I have upgraded from RN 0.61.5 to RN 0.64.2

Description

i have upgraded my project using npx react-native upgrade and used the manual documentation to upgrade some files.

Reproducible demo

Hezron-Nelapati commented 3 years ago

I fixed the issue.

  1. LaunchScreen.storyboard is not acting as a opening screen and is going to main interface section in xcode, so
  2. save the file as LaunchScreen.xib
  3. keep the main interface option in general settings of project empty
  4. add the file to LaunchScreen option under general settings in xcode manually and do not add as the upgrade helper says. 4.1 create a storyboard file in xcode after creating the file rename it to xib.
  5. and add this to info.plist NSAppTransportSecurity

    ------change------

    NSAllowsArbitraryLoads NSAllowsArbitraryLoadsInWebContent NSAllowsLocalNetworking

    ------end------

Hezron-Nelapati commented 3 years ago

help