React-native: RN0.61 React.xcodeproj could not be found

Created on 22 Nov 2019  Â·  5Comments  Â·  Source: facebook/react-native

Installed react-native-community/push-notification-ios, compile error [React/RCTEventEmitter.h file not found]
There is no React.xcodeproj below the [node_modulesreact-nativeReact] folder.

React Native version:
react: 16.9.0 => 16.9.0
react-native: 0.61.4 => 0.61.4

スクリーンショット 2019-11-22 15 51 10

Bug

Most helpful comment

@cx5168 I have those header search paths, but the node_modules/react-native/React folder does not contain an xcodeproj file..?

All 5 comments

Hey @cx5168 ,

can you try pod install in the ios directory ?

@Kida007
I don't think it has anything to do with pod. When react-native init creates a project, it is already installed in node_modules. The react-native0.60.4 creation project exists in node_modules/react-native/react with react.xcodeproj

I'm solved it!

  1. Libraries→PushNotificationIOS.xcodeproj→build setting→Search Paths→Header Search Paths:
    $(SRCROOT)/../../../../ios/Pods/Hearders/Public

  2. menu(Product)→Scheme→Edit Scheme:
    [+]→Pods→React
    123

  3. clean→build

@cx5168 I have those header search paths, but the node_modules/react-native/React folder does not contain an xcodeproj file..?

the file is here https://github.com/facebook/react-native/blob/master/React/Modules/RCTEventEmitter.h

maybe they are using wrong path, open issue in their repository... I don't work on ios

Was this page helpful?
0 / 5 - 0 ratings