react-native: [PushNotification] RCTPushNotificationManager.h not found

I followed everything here (https://facebook.github.io/react-native/docs/pushnotificationios.html ) to use PushNotification on iOS, but when I try to build the app, I get the following error.

RCTPushNotificationManager.h file not found

I even added RCTPushNotification.xcodeproj to Libraries but it still get the same error.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 15 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I just had this issue and was able to fix it with the above comments but there was a gotcha for me… For adding the header search path, I needed to add $(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS instead of $(SRCROOT)/node_modules/react-native/Libraries/PushNotificationIOS for my project to work. (My project was just updated to 0.14.2 from 0.12.0) Hope this helps

Fixed it, I went into the XCode project for RCTPushNotifications, rebuilt it there after linking headers, and then went and rebuilt my main project. https://github.com/facebook/react-native/issues/1613#issuecomment-154769032