The iOS SDK allows you to integrate the DaCast player securely in your mobile applications. To get started download the archive from this link and open it in a folder.

In your Xcode application right click on the project, select "Add Files to ..." and add both THEOplayerSDK.frameworkfrom the archive.
In the project configuration make sure the framework is listed in Frameworks, Libraries and Embedded Content. You should end up with something like this:
You will then need to head to this link and copy the file into the root of your directory. Then in your ViewController.swift add the following code to your viewDidLoad function:
let player = DacastPlayer(contentIdStr: "104301_f_506288", adUrl: "https://cdn.theoplayer.com/demos/preroll.xml")
player.frame = CGRect(x: 0, y: 0, width: 400, height: 400)
player.addAsSubview(of: self.view)
Let's break down this code. First we create a DacastPlayer object with 2 arguments: the contentId and an adUrl.
The contentId is found in the javascript embed code in the publish settings section of your backoffice. The adUrl can be from any ad provider and is optional, removing it will just play the video with no ad.
Next we set a size for our player with the frame property and add the player to the current view with addAsSubview (you can also use insertAsSubview)

From there you can get the instance of the THEOplayer by calling player.getTHEOplayer() and refer to the official THEOplayer documentation.

You may get an error when trying to upload your code to the AppConnect store saying "Code signing "THEOplayerSDK.framework failed" To fix this you need to do :

You need to run two commands - first cd into cd into THEOplayerSDK.framework then strip out arm64 from the binary;
lipo THEOplayerSDK -extract arm64 -output arm64 
 mv arm64 THEOplayerSDK