Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'JWPlayer-iOS-SDK/JWPlayerController.h' file not found

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.

Framework search path

Linked framework

Other linker flags field

Added license in JWPlayerKey

Hierarchy

What am I missing?

like image 971
Astha Gupta Avatar asked Dec 05 '25 07:12

Astha Gupta


2 Answers

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>

like image 133
David Avatar answered Dec 07 '25 20:12

David


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

like image 35
Fa.Shapouri Avatar answered Dec 07 '25 19:12

Fa.Shapouri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!