Skip to content

Can't do pod install in example project when choose Turbo Native Modules with backward compatible: Invalid Podfile file: Could not find NodeΒ #639

@LeXuanKhanh

Description

@LeXuanKhanh

Description

Step:

  • Create new libraries with the option 'Turbo Native Modules with backward compatible'
  • Yarn install the repo
  • Go to example/ios, do pod install

Error:

[!] Invalid `Podfile` file: Could not find Node.

 #  from /Users/macbookpro/Projects/react-native-awesome-module/example/ios/Podfile:9
 #  -------------------------------------------
 #  
 >  use_test_app!
 #  -------------------------------------------

Example/ios/Podfile:

ws_dir = Pathname.new(__dir__)
ws_dir = ws_dir.parent until
  File.exist?("#{ws_dir}/node_modules/react-native-test-app/test_app.rb") ||
  ws_dir.expand_path.to_s == '/'
require "#{ws_dir}/node_modules/react-native-test-app/test_app.rb"

workspace 'RnScanCodeFromImageExample.xcworkspace'

use_test_app!

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

  • Turbo Native Modules with backward compatible
  • Test app

Link to repro

https://github.com/LeXuanKhanh/react-native-awesome-module

Environment

System:
  OS: macOS 13.6.3
  CPU: (10) arm64 Apple M1 Pro
  Memory: 93.16 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.20.2
    path: ~/.asdf/installs/nodejs/18.20.2/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.5.0
    path: ~/.asdf/plugins/nodejs/shims/npm
  Watchman:
    version: 2024.05.06.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/macbookpro/.asdf/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11047128
  Xcode:
    version: 15.1/15C65
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.7
    path: /usr/bin/javac
  Ruby:
    version: 3.3.0
    path: /Users/macbookpro/.asdf/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.3
    wanted: 0.75.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: false
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions