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

'RCTBridgeModule.h' file not found #1246

Closed
mfekadu opened this issue May 26, 2017 · 3 comments
Closed

'RCTBridgeModule.h' file not found #1246

mfekadu opened this issue May 26, 2017 · 3 comments

Comments

@mfekadu
Copy link

mfekadu commented May 26, 2017

User Story

As a student developer, I want to simply build & run #StatusIM for ios so that I can understand how it works.

Description

Bug: 'RCTBridgeModule.h' file not found

Summary: I tried replacing #import "RCTBridgeModule.h" with #import <React/RCTBridgeModule.h> after reading here: yorkie/react-native-wechat#33

Expected behavior

StatusIM should run on the ios simulator.

Actual behavior

It did not :(

Reproduction

  • Open Status via Xcode
  • Click the play button
  • Notice error ::: 'RCTBridgeModule.h' file not found

Solution

thanks to @morelazers:

rm -r node_modules/
rm -r ios/Pods
npm install
cd ios && pod install
Open XCode, hit CMD + Shift + K to clean and build

If you then experience Statusgo/Statusgo.h file not found then please try the solutions on #2246

Additional Information

  • Status version: 1.0? cloned repository today (5/26/17)
  • Operating System: iOS
  • Xcode Version 8.3.2 (8E2002)
  • I'm possibly missing files because I've never done anything with React before? :\

Logs

RCTStatus Group
Lexical or Preprocessor Issue Group
(~my-status-react-directory~)/modules/react-native-status/ios/RCTStatus/RCTStatus.h:2:9: 'React/RCTBridgeModule.h' file not found
(~my-status-react-directory~)/modules/react-native-status/ios/RCTStatus/RCTStatus.m:1:9: In file included from (~my-status-react-directory~)/modules/react-native-status/ios/RCTStatus/RCTStatus.m:1:

Various Warnings... possibly related?

StatusImTests Group
Target Integrity Group
(~my-status-react-directory~)/ios/StatusIm.xcodeproj The file “Pods-StatusImTests.debug.xcconfig” couldn’t be opened because there is no such file. ((~my-status-react-directory~)/ios/Pods/Target Support Files/Pods-StatusImTests/Pods-StatusImTests.debug.xcconfig)
(~my-status-react-directory~)/ios/StatusIm.xcodeproj The file “Pods-StatusImTests.release.xcconfig” couldn’t be opened because there is no such file. ((~my-status-react-directory~)/ios/Pods/Target Support Files/Pods-StatusImTests/Pods-StatusImTests.release.xcconfig)
Dependency Analysis Warning Group
The file “Pods-StatusImTests.debug.xcconfig” couldn’t be opened because there is no such file. ((~my-status-react-directory~)/ios/Pods/Target Support Files/Pods-StatusImTests/Pods-StatusImTests.debug.xcconfig)
StatusIm Group
Target Integrity Group
(~my-status-react-directory~)/ios/StatusIm.xcodeproj The file “Pods-StatusIm.debug.xcconfig” couldn’t be opened because there is no such file. ((~my-status-react-directory~)/ios/Pods/Target Support Files/Pods-StatusIm/Pods-StatusIm.debug.xcconfig)
(~my-status-react-directory~)/ios/StatusIm.xcodeproj The file “Pods-StatusIm.release.xcconfig” couldn’t be opened because there is no such file. ((~my-status-react-directory~)/ios/Pods/Target Support Files/Pods-StatusIm/Pods-StatusIm.release.xcconfig)
Dependency Analysis Warning Group
The file “Pods-StatusIm.release.xcconfig” couldn’t be opened because there is no such file. ((~my-status-react-directory~)/ios/Pods/Target Support Files/Pods-StatusIm/Pods-StatusIm.release.xcconfig)
StatusIm project Group
Validate Project Settings Group
(~my-status-react-directory~)/ios/StatusIm.xcodeproj Update to recommended settings

I hope that was nice and detailed :)
Thanks in advance for your help!
-michael

@morelazers
Copy link

morelazers commented May 29, 2017

I had this issue and solved it by doing:
rm -r node_modules/
rm -r ios/Pods
npm install
cd ios && pod install
Open XCode, hit CMD + Shift + K to clean and build

Basically just clean the whole thing and go again from 0, also worth noting that this worked for me on XCode 8.2.1 but I don't think the version is necessarily the problem.

@rasom
Copy link
Member

rasom commented Jun 27, 2017

Thanks for help @morelazers

@rasom rasom closed this as completed Jun 27, 2017
@mfekadu
Copy link
Author

mfekadu commented Nov 26, 2017

Thanks @morelazers! Worked perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants