Skip to content

RNAwesomeLibrarySpec.h' file not foundΒ #640

@Ahmedhamed77

Description

@Ahmedhamed77

Description

steps to reproduce

1- npx create-react-native-library@latest awesome-library
2- choose Turbo module (requires new arch)
3- push the repo to github 
4- install the package in a react-native app 

so the package.json will look like this

    "react": "18.3.1",
    "react-native": "0.75.3",
    "react-native-awesome-library": "https://github.com/Ahmedhamed77/react-native-awesome-library.git"

then in the project folder

cd ios && bundle install && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install

then yarn ios

I get this error

TestApp/node_modules/react-native-awesome-library/ios/AwesomeLibrary.h:3:9: 'RNAwesomeLibrarySpec.h' file not found

#import "RNAwesomeLibrarySpec.h"

in the example app inside the package itself the generated files are exist but if I install the lib from GitHub the generated files are not generated with pod install

do I miss something here ?

Packages

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

Selected options

already described it

Link to repro

https://github.com/Ahmedhamed77/react-native-awesome-library

Environment

info Fetching system and libraries information...
(node:8534) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
System:
OS: macOS 14.3.1
CPU: (8) arm64 Apple M1
Memory: 81.25 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.6.2
path: /opt/homebrew/bin/node
Yarn:
version: 3.6.4
path: /opt/homebrew/bin/yarn
npm:
version: 10.2.4
path: /opt/homebrew/bin/npm
Watchman:
version: 2024.01.22.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2411.12071903
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.11
path: /usr/bin/javac
Ruby:
version: 3.3.0
path: /opt/homebrew/opt/ruby/bin/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: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: true

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