red5pro / react-native-red5pro

React Native Red5 Pro Publisher/Subscriber
https://www.red5pro.com/
Other
34 stars 20 forks source link

'R5Streaming/R5Streaming.h' file not found #80

Open varmab opened 3 years ago

varmab commented 3 years ago

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?

RSRajendra commented 3 years ago

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

RSRajendra commented 3 years ago

Screenshot 2021-02-24 at 1 06 57 AM

askielboe commented 3 years ago

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 commented 3 years ago

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.

vikasatappinlay commented 2 years ago

/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.