If you don't find an answer, please click here to post your question.
Reply
Occasional Visitor
Posts: 2
Registered: ‎10-05-2016

OoyalaSkinSDK not compiling swift.

Hi,

Trying to compile the OoyalaSkinSDK into a working existing swift project in xcode 8. I have included all of the additional resources and library and updated code as per instructions. When building I keep getting the following attached error. any thoughts?

Screen Shot 2016-10-06 at 9.50.53 am.png
Occasional Visitor
Posts: 2
Registered: ‎10-05-2016

Re: OoyalaSkinSDK not compiling swift.

Ok Solved the compile issue. by adding libxml2 and libc++.  but no another issue. here is the code

 

 let jsCodeLocationURL =  NSBundle.mainBundle().pathForResource("main", ofType: "jsbundle")
        let localUrl:NSURL = NSURL.fileURLWithPath(jsCodeLocationURL!)
        let discoveryOptions = OODiscoveryOptions(type: OODiscoveryType.Popular, limit: 10, timeout: 60)
        let skinOptions = OOSkinOptions(discoveryOptions: discoveryOptions, jsCodeLocation: localUrl, configFileName: "skin", overrideConfigs: nil)
        let playerViewController = OOSkinViewController(player: ooyalaPlayer, skinOptions: skinOptions, parent: ooyalaPlayerViewController?.view, launchOptions: nil)

and this is creating the below error. Any thoughts please?

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSDictionary dictionaryFromSkinConfigFile:mergedWith:]: unrecognized selector sent to class 0x1114e0d60'

***

Ooyalan
Posts: 42
Registered: ‎04-18-2016

Re: OoyalaSkinSDK not compiling swift.

Hello godedog,

 

I am currently checking this issue I will provide and update for you shortly please stand by.

 

Greetings,

Uriel

Frequent Advisor
Posts: 46
Registered: ‎07-28-2016

Re: OoyalaSkinSDK not compiling swift.

Hi,

 

Did you got any solution for this crash issue,

Pls let me know also i am aalso getting the same issue in ios.

2016-12-21 14:51:38.619075 OoyalaSample[4422:2011368] OOOoyalaPlayer.m : Ooyala SDK version: v4.21.0_RC3
2016-12-21 14:51:38.619559 OoyalaSample[4422:2011368] OOOoyalaPlayer.m : Ooyala SDK git SHA: 1d2cb0d055f7a184d0847e586334482bf36f1835
2016-12-21 14:51:38.649346 OoyalaSample[4422:2011368] OOIQAnalyticsPlugin.m : jsContext is <JSContext: 0x170247fb0>
2016-12-21 14:51:38.653509 OoyalaSample[4422:2011368] OOAnalyticsPluginManager.m : Registered analytics plugin <OOIQAnalyticsPlugin: 0x170247f80>
2016-12-21 14:51:38.655151 OoyalaSample[4422:2011368] OOIQAnalyticsPlugin.m : reportPlayerLoad
2016-12-21 14:51:38.671201 OoyalaSample[4422:2011368] OOAdPluginManager.m : register ad plugin <OOManagedAdsPlugin: 0x17026ecc0>
2016-12-21 14:51:38.672702 OoyalaSample[4422:2011368] OOSkinViewController.m : Ooyala SKin Version: v0.8.0
2016-12-21 14:51:38.673862 OoyalaSample[4422:2011368] +[NSDictionary dictionaryFromSkinConfigFile:mergedWith:]: unrecognized selector sent to class 0x1a983b128
2016-12-21 14:51:38.675491 OoyalaSample[4422:2011368] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSDictionary dictionaryFromSkinConfigFile:mergedWith:]: unrecognized selector sent to class 0x1a983b128'
*** First throw call stack:
(0x18493a1c0 0x18337455c 0x1849411b8 0x18493e278 0x18483859c 0x10008cb14 0x100083378 0x100080238 0x10007f950 0x10007b434 0x100084ff8 0x1000869e0 0x100086a58 0x18aaa8614 0x18a7c82f8 0x18a93a9e4 0x18ad6359c 0x18ad66ca4 0x18a9282e8 0x18a7c6828 0x18ad56ce8 0x18ad56848 0x18ad55b04 0x18a7c4a44 0x18a79552c 0x18af82a54 0x18af7c4bc 0x1848e8278 0x1848e7bc0 0x1848e57c0 0x184814048 0x18629a198 0x18a8002fc 0x18a7fb034 0x1000878a0 0x1837f85b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 
Highlighted
Frequent Visitor
Posts: 1
Registered: ‎04-23-2018

Re: OoyalaSkinSDK not compiling swift.

Hello there. As of today, I can't integrate the Ooyala Skin Player SDK with the Ooyala SDK. I get the same error. SDK version is v4.34.1_RC2 , and Skin SDK says the following in the VERSION file: "Built with Ooyala SDK Version v4.34.1_RC2".

 

I've added the following frameworks to the project: libz.tbd, MessageUI.framework, Social.framework and JavascriptCore.framework

 

In my Bridging Header file I have the following contents:

 

#ifndef OoyalaSwift_Bridge_OoyalaHeader_h
#define OoyalaSwift_Bridge_OoyalaHeader_h

#import <OoyalaSDK/OODiscoveryOptions.h>
#import <OoyalaSDK/OOOoyalaError.h>
#import <OoyalaSDK/OOOoyalaPlayer.h>
#import <OoyalaSDK/OOooyalaPlayerViewController.h>
#import <OoyalaSDK/OOPlayerDomain.h>
#import <OoyalaSDK/OoyalaSDK.h>
#import <OoyalaSkinSDK/OOSkinViewController.h>
#import <OoyalaSkinSDK/OOSkinOptions.h>

#endif

And my sample implementation contains the following code to get the ViewController started (in viewDidLoad):

 

 if let jsCodeLocation = Bundle.main.url(forResource: "main", withExtension: "jsbundle") {
            let discoveryOptions = OODiscoveryOptions(type: .popular, limit: 10, timeout: 60)
            let skinOptions = OOSkinOptions(discoveryOptions: discoveryOptions, jsCodeLocation: jsCodeLocation, configFileName: "skin", overrideConfigs: nil)
            ooyalaPlayerViewController = OOSkinViewController(player: player, skinOptions: skinOptions, parent: self.playerView, launchOptions: nil)
            //self.addChildViewController(ooyalaPlayerViewController)
            ooyalaPlayerViewController.view.frame = playerView.bounds
            self.addChildViewController(ooyalaPlayerViewController)
            playerView.addSubview(ooyalaPlayerViewController.view)
        }

The app crashes after initializing OOSkinViewController and the error is the following:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSDictionary dictionaryFromSkinConfigFile:mergedWith:]: unrecognized selector sent to class 0x10d50d1a8'

Would be nice to get feedback as soon as possible, as I need to complete a project for a client with custom video player controls.