react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
731 stars 280 forks source link

#import <React/RCTEventEmitter.h> not found #32

Open ease-space opened 4 years ago

ease-space commented 4 years ago

Снимок экрана 2019-10-08 в 14 55 28

say95 commented 4 years ago

Hey @maystrenkoYurii , I am facing the same issue. Are you able to resolve this issue?

opiruyan commented 4 years ago

What is your RN version? 61? Does your Podfile conform to required?

say95 commented 4 years ago

@opiruyan Hey, my RN version is 0.59.5. I somehow able to fix it by modifying the pod file

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'pushnotifications' do
  pod 'React', :path => '../node_modules/react-native'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.name == "React"
        target.remove_from_project
      end
    end
  end
end
guopeng1994 commented 4 years ago

same issues in RN 0.59.9

BrandonMHogan commented 4 years ago

same issue using expo 35.0.0 Was working with expo 33.0.0, but stopped after updating.

Was able to get it compiling by adding the following to the Header Search Paths for the RNCPushNotificationIOS Target in the PushNotificationIOS project .xcodeproj. Make sure they are its marked as recursive.

"$(SRCROOT)/../../../../ios/Pods/Headers/Public/React" "$(SRCROOT)/../../../react-native/ReactCommon/yoga"

muriloribeiro34 commented 4 years ago

use --> cd ios && pod install

GregoryBabonaux commented 4 years ago

Same issue with RN 0.59.10

i tried pod install with no success

muriloribeiro34 commented 4 years ago

pod install so it works in react-native 0.60+, sorry

GregoryBabonaux commented 4 years ago

pod install so it works in react-native 0.60+, sorry

Yep, it probably work for RN 0.60+, but the major issues related here are for RN 0.59.x

caner-karaman commented 4 years ago

Same issue after upgrading RN 0.61.3

cx5168 commented 4 years ago

RN0.61.4 same issue!!!

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

cx5168 commented 4 years ago

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

Naturalclar commented 4 years ago

@maystrenkoYurii has this issue been solved for you? If so, I'll go ahead and close this issue :)