react-native-red5pro icon indicating copy to clipboard operation
react-native-red5pro copied to clipboard

'R5Streaming/R5Streaming.h' file not found

Open varmab opened this issue 4 years ago • 5 comments

Hi,

I followed all instructions for iOS as per readme. I still unable to build successful in XCode. I am getting this file not found error.

image

Anyone has ideas?

varmab avatar Dec 28 '20 17:12 varmab

Hi I have found same issue Have you able to resolve it

RSRajendra avatar Feb 23 '21 19:02 RSRajendra

Screenshot 2021-02-24 at 1 06 57 AM

RSRajendra avatar Feb 23 '21 19:02 RSRajendra

I had the same error but managed to fix it.

I don't know if it applies to you, but make sure to add the path to R5Streaming.framework in the Framework Search Path for the R5VideoView build target, not just for the top level project.

image

askielboe avatar Apr 29 '21 10:04 askielboe

If you're using cocoapods you can use this post install script to set the framework path:

# Add framework search path to red5pro build config
post_install do |installer|
  target = installer.pods_project.targets.find {|target| target.name == "R5VideoView"}
  target.build_configurations.each do |configuration|
    target.build_settings(configuration.name)["FRAMEWORK_SEARCH_PATHS"] = "$(PROJECT_DIR)/../Frameworks"
  end
end

You'll need to edit "$(PROJECT_DIR)/../Frameworks" to where ever you put the red5pro SDK.

askielboe avatar Apr 29 '21 12:04 askielboe

/Users/salman/Documents/GitHub/react-native-red5pro/example/Red5ProVideoViewExample/node_modules/react-native-red5pro/ios/R5VideoView/R5VideoView/R5StreamSubscriber.m:10:9: 'R5Streaming/R5Streaming.h' file not found

above installer is not solving the error, even i have tried to run it's example and the implementation of my project which is running in android but not in ios because of this error.

VikasReactNative avatar Jan 15 '22 12:01 VikasReactNative