BondGoat / react-native-native-video-player

React native video player, used for Android, iOS. It will lauch a Native Video, not an Embeded Component
GNU General Public License v3.0
50 stars 44 forks source link

AppDelegate.h' file not found #3

Closed psyzz closed 7 years ago

psyzz commented 7 years ago

hello,

i was trying your video player and this error shows up: .../node_modules/react-native-native-video-player/ios/RNVideoPlayer/RNVideoPlayer.h:9:9: 'AppDelegate.h' file not found

Do you know why ? Thanks

Secretmapper commented 7 years ago

Any info how you got this to work @arshavinho ?

BondGoat commented 7 years ago

Hi,

The AppDelegate.h is imported from the root ios project. Please add this : $(SRCROOT)/../../../ios/[your project name] to the RNVideoPlayer - Header Search Paths, and set 'recursive'

Let me know there're any problems.

rf1804 commented 6 years ago

@BondGoat I have changed the header search path but still it is giving me the error of AppDelegate.h not found

amed commented 6 years ago

react-native@0.55.4 react-native-native-video-player@^1.3.4

It seems that this issue is not going to be solved easily. Same here, AppDelegate.h file not found.

rohit75 commented 4 years ago

/node_modules/react-native-native-video-player/ios/RNVideoPlayer/RNVideoPlayer.h:9:9: fatal error: 'AppDelegate.h' file not found

import "AppDelegate.h

           ^~~~~~~~~~~~~~~

Not able to build on IOS. Any solutions?

sweshgit commented 4 years ago

I could solve this issue by following simply adding Header Search Path.

Adding your project path in Header Search path will solve the problem as below for the particular POD imports. So whichever module, you are importing, please add the Header Search Path for the same as below.

"${PODS_ROOT}/../Your Project Name"

image