Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build Failed in RN 0.77.0 while running in IOS with new architecture enabled #49114

Open
arunalexkk opened this issue Feb 3, 2025 · 1 comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Platform: iOS iOS applications. Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@arunalexkk
Copy link

Description

NameError: uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger
/Users/test/Co/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:16:in <module:LoggerThreadSafeLevel>' /Users/test/Co/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:9:in module:ActiveSupport'
/Users/test/Co/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:8:in <top (required)>' / /Users/test/Co/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_silence.rb:5:in require'
/ /Users/test/Co/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_silence.rb:5:in <top (required)>' / /Users/test/Co/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger.rb:3:in require'
/Users/test/Co/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger.rb:3:in <top (required)>' / /Users/test/Co/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support.rb:29:in require'
/ /Users/test/Co/vendor/bundle/ruby/2.6.0gems/activesupport-6.1.7.10/lib/active_support.rb:29:in <top (required)>' / /Users/test/Co/vendor/bundle/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods.rb:7:in require'
/ /Users/test/Co/vendor/bundle/ruby/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods.rb:7:in <top (required)>' / /Users/test/Co/vendor/bundle/ruby/2.6.0/gems/cocoapods-1.15.2/bin/pod:36:in require'
/ /Users/test/Co/vendor/bundle/ruby/2.6.0/gems/cocoapods-1.15.2/bin/pod:36:in <top (required)>' / /Users/test/Co/vendor/bundle/ruby/2.6.0/bin/pod:23:in load'
/ /Users/test/Co/vendor/bundle/ruby/2.6.0/bin/pod:23:in `<top (required)>'

error Installing Cocoapods failed. This doesn't affect project initialization and you can safely proceed. However, you will need to install Cocoapods manually when running iOS, follow additional steps in "Run instructions for iOS" section.

[!] Invalid Podfile file: [!] //.nvm/versions/node/v20.18.1/bin/node -p require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
) /Users/a/ios

node:internal/modules/cjs/loader:1228
throw err;
Cannot find module 'react-native/scripts/react_native_pods.rb'
Require stack: ^

Failed to build ios project. "xcodebuild" exited with error code '65'. To debug build logs further, consider building your app with Xcode.app, by opening 'Co.xcworkspace'

Steps to reproduce

npx react-native run-ios

React Native Version

0.77.0, 076.6

Affected Platforms

Runtime - iOS

Areas

Fabric - The New Renderer

Output of npx react-native info

⚠️ react-native depends on @react-native-community/cli for cli commands. To fix update your package.json to include:


  "devDependencies": {
    "@react-native-community/cli": "latest",
  }

Stacktrace or Logs

[!] Invalid Podfile file: [!] //.nvm/versions/node/v20.18.1/bin/node -p require.resolve(
    "react-native/scripts/react_native_pods.rb",
    {paths: [process.argv[1]]},
  ) /Users/a/ios

node:internal/modules/cjs/loader:1228
  throw err;
Cannot find module 'react-native/scripts/react_native_pods.rb'
Require stack:  ^

Reproducer

https:

Screenshots and Videos

No response

@arunalexkk arunalexkk added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Feb 3, 2025
@react-native-bot react-native-bot added Platform: iOS iOS applications. Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Feb 3, 2025
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Platform: iOS iOS applications. Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests

2 participants