Status-react: 'RCTBridgeModule.h' file not found

Created on 26 May 2017  Â·  3Comments  Â·  Source: status-im/status-react

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: https://github.com/weflex/react-native-wechat/issues/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

Most helpful comment

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.

All 3 comments

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.

Thanks for help @morelazers

Thanks @morelazers! Worked perfectly!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

churik picture churik  Â·  3Comments

andmironov picture andmironov  Â·  3Comments

Serhy picture Serhy  Â·  3Comments

oskarth picture oskarth  Â·  4Comments

errorists picture errorists  Â·  3Comments