Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[0.60.0] Fresh install : 'cxxreact/ModuleRegistry.h' file not found #25480

Closed
psyzz opened this issue Jul 3, 2019 · 8 comments
Closed

[0.60.0] Fresh install : 'cxxreact/ModuleRegistry.h' file not found #25480

psyzz opened this issue Jul 3, 2019 · 8 comments
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@psyzz
Copy link

psyzz commented Jul 3, 2019

When running an iOS fresh app with react-native 0.60.0 the build failed with this error:

'cxxreact/ModuleRegistry.h' file not found

macOS Mojave 10.14.5
xCode 10.2.1

React Native version:
react-native-cli: 2.0.1
react-native: 0.60.0

Steps To Reproduce

  1. react-native init projectname
  2. open . xcworkspace
  3. hit run
    => error:
    'cxxreact/ModuleRegistry.h' file not found

or

  1. react-native init projectname
  2. react-native run-ios
    => error:
    error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening testproj060.xcworkspace. Run CLI with --verbose flag for more details. ** BUILD FAILED **
@psyzz psyzz added the Bug label Jul 3, 2019
@murrayee
Copy link

murrayee commented Jul 4, 2019

+1

1 similar comment
@gongshouhui
Copy link

+1

@murrayee
Copy link

murrayee commented Jul 4, 2019

i solved it :

  • brew insatll cocoapods
  • cd projectName/ios
  • pod insatll
  • cd .. & react-native run-ios

@kelset
Copy link
Contributor

kelset commented Jul 4, 2019

👋 as pointed out by @murrayee it's likely that you didn't have cocoapods installed - or something went wrong during linking. I just tried to do the same flow you described and I can't reproduce it - I'll close this for now.

@kelset kelset closed this as completed Jul 4, 2019
@psyzz
Copy link
Author

psyzz commented Jul 4, 2019

i already had cocoapods installed.
Doing a brew install cocoapods and redo a pod install fix it, thanks

@dragooncjw
Copy link

@murrayee I did what you told. But it showed '[!] No `Podfile' found in the project directory.'.
What should I do next?

@betopompolo
Copy link

@dragooncjw you need to execute pod install inside ios/ folder. Did you try that? 🤔

@lizhengjin
Copy link

i try this same flow but i can't solve it

@facebook facebook locked as resolved and limited conversation to collaborators Jul 4, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

8 participants