Followed the steps given at :https://developer.jwplayer.com/sdk/ios/docs/developer-guide/intro/getting-started/ to import JWPlayer
For troubleshooting: https://developer.jwplayer.com/sdk/ios/docs/developer-guide/troubleshooting/troubleshooting/
Also installed cocoapods and in Podfile added: pod 'JWPlayer-SDK', '~> 2.4.3'
ran pod install command later.
What am I missing?
By cocoa pod installation you must use below path to import:
#import <JWPlayer-SDK/JWPlayerController.h>
And by adding framework it is said at document this path:
#import <JWPlayer-iOS-SDK/JWPlayerController.h>
But I faced Not Found Error by adding framework to project
By pod installation app run without any error
I faced the same issue with demo app. Simply removed the framework folder reference from the project (it wasn't there in the first place if you check the files in finder). Download the jwplayer framework. Drop it where the other files related to the app are and simply import it to your project in Xcode. After that just run the project. Voila it works.
Not sure why, but after installing the SDK via cocoa pods, the import that ended up working for me was the following.
#import <JWPlayer_iOS_SDK/JWPlayerController.h>
来源:https://stackoverflow.com/questions/39141851/jwplayer-ios-sdk-jwplayercontroller-h-file-not-found