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

懵懂的女人 提交于 2019-12-09 19:22:37

问题


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?


回答1:


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




回答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.




回答3:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!