react-native-bootsplash: iOS build failure react-native v0.76

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

New iOS build error when trying to upgrade to react-native v0.76.1 from v0.75.4

In file included from ios/Application/AppDelegate.mm:9:
ios/Pods/Headers/Public/RNBootSplash/RNBootSplash.h:3:9: fatal error: could not build module 'ReactCodegen'
    3 | #import <RNBootSplashSpec/RNBootSplashSpec.h>
      |  ~~~~~~~^
345 warnings and 3 errors generated.

ios/Pods/Headers/Public/glog/glog/logging.h:512:1: Import of module 'glog.glog.log_severity' appears within namespace 'google'

ios/Pods/Headers/Public/React-debug/react/debug/react_native_assert.h:54:10: Could not build module 'glog'

ios/Pods/Headers/Public/RNBootSplash/RNBootSplash.h:3:9: Could not build module 'ReactCodegen'

Library version

6.2.6

Environment info

info Fetching system and libraries information...
System:
  OS: macOS 14.7
  CPU: (12) arm64 Apple M2 Pro
  Memory: 246.36 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.10.0
    path: ~/.nvm/versions/node/v20.10.0/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v20.10.0/bin/npm
  Watchman:
    version: 2024.09.30.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/benjamin/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.2 AI-222.4459.24.2221.9971841
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 3.3.4
    path: /Users/benjamin/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.2
    wanted: 15.1.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.1
    wanted: 0.76.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Steps to reproduce

  1. Try to build an app

Reproducible sample code

-

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 17 (6 by maintainers)

Most upvoted comments

If I don’t misremember @ttdatt I fixed my issues by skipping RN 0.76 completely and just updating to RN 0.77, where the issues apparently didn’t exist.

I am having the same issue and it is not the same as: https://github.com/zoontek/react-native-bootsplash/discussions/657#discussioncomment-11417484

React native: 0.76.7 “react-native-bootsplash”: “^5.5.1”,

Image Image

When I am removing splash screen imports from AppDelegate.mm it builds fine

// #import “RNBootSplash.h”

// [RNBootSplash initWithStoryboard:@“BootSplash” rootView:rootView];

I have not solved it. I have not upgraded to react-native 0.76 yet, but when I come back to it in a week or two I may upgrade with the new architecture disabled to workaround this issue.