As a student developer, I want to simply build & run #StatusIM for ios so that I can understand how it works.
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
StatusIM should run on the ios simulator.
It did not :(
'RCTBridgeModule.h' file not foundthanks to @morelazers:
rm -r node_modules/
rm -r ios/Pods
npm install
cd ios && pod install
Open XCode, hitCMD + Shift + Kto clean and build
If you then experience Statusgo/Statusgo.h file not found then please try the solutions on #2246
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:
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
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!
Most helpful comment
I had this issue and solved it by doing:
rm -r node_modules/rm -r ios/Podsnpm installcd ios && pod installOpen XCode, hit
CMD + Shift + Kto clean and buildBasically 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.