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
- Modify settings and appdelegate.m to use React Native PushNotificationIOS. See: - http://facebook.github.io/react-native/docs/pushnotificationios.html - https://github.com/facebook/react-native/issu... — committed to kahdojay/sousReactNative by kahdojay 9 years ago
- Modify settings and appdelegate.m to use React Native PushNotificationIOS. See: - http://facebook.github.io/react-native/docs/pushnotificationios.html - https://github.com/facebook/react-native/issu... — committed to kahdojay/sousReactNative by kahdojay 9 years ago
- Docs for manual linking in PushNotificationsIOS Summary: close #3831 Closes https://github.com/facebook/react-native/pull/5008 Reviewed By: svcscm Differential Revision: D2794281 Pulled By: bestan... — committed to facebook/react-native by deleted user 8 years ago
- Docs for manual linking in PushNotificationsIOS Summary: close #3831 Closes https://github.com/facebook/react-native/pull/5008 Reviewed By: svcscm Differential Revision: D2794281 Pulled By: bestan... — committed to wildlifela/react-native by deleted user 8 years ago
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 helpsFixed 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