zoontek / react-native-bootsplash

🚀 Show a splash screen during app startup. Hide it when you are ready.
MIT License
3.73k stars 257 forks source link

iOS build failure react-native v0.76 #651

Closed bhandanyan-nomad closed 2 weeks ago

bhandanyan-nomad commented 2 weeks ago

Before submitting a new issue

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

-
zoontek commented 2 weeks ago

I updated the example app to check. I indeed has a build issue with React Codegen, but did a project cleanup to remove old build artifacts from 0.75.4, rebuild, everything went well. So, cache issues.

Screenshot 2024-11-08 at 23 39 44
bhandanyan-nomad commented 2 weeks ago

I made sure to clean the build folder several times and the issue persisted for me. I will continue troubleshooting. Did you do anything besides clean the build folder in XCode?

zoontek commented 2 weeks ago

No, just a regular update using the upgrade helper, then a pod update. Let me know if you have a solid reproduction (ideally, a repo)

bhandanyan-nomad commented 1 week ago

@zoontek could you please check if the build still works if you:

I am still getting the build failure even after completely wiping all my caches 🤔

zoontek commented 1 week ago

gem 'xcodeproj', '< 1.26.0' is a bundle dependency on react-native 0.76+

bhandanyan-nomad commented 1 week ago

The issue with 1.26.0 is fixed in 1.27.0, react-native just hasn't pushed a new version since. https://github.com/CocoaPods/Xcodeproj/issues/989#issuecomment-2450542206

zoontek commented 1 week ago

@bhandanyan-nomad Still building perfectly. Please open a repository with a minimal reproduction.

Screenshot 2024-11-12 at 01 02 48 Screenshot 2024-11-12 at 01 05 53