A_G
A_G

Reputation: 2370

'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?

Upvotes: 3

Views: 928

Answers (3)

David
David

Reputation: 1330

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>

Upvotes: 2

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.

Upvotes: 1

Fa.Shapouri
Fa.Shapouri

Reputation: 1048

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

Upvotes: 1

Related Questions