The Newzulu Platform SDK for iOS has the following requirements:
- Swift 3.0 or later
- iOS 8.0 or later
- Xcode 8.2 or Xcode 8.3
Downloading the SDK
Integrating with Xcode
- Copy the
Newzuludirectory in your project.
- On your application targets’ “General” settings tab, in the “Linked
Frameworks and Libraries” section, drag and drop
- On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Add the following contents to the script area below the shell:
Add the paths to the frameworks under “Input Files”:
This script works around an App Store submission bug triggered by universal binaries and ensures that necessary bitcode-related files and dSYMs are copied when archiving.
Using the SDK
Get your server information
The first step is to get your Newzulu Platform server information.
- The server region you want to use: It can be
- The vhost of your project. You can find it easily looking at your
https://eu.mediafactory.fm/dashboard?vid=98means your vhost is
Please contact us if you're having difficulties finding those information.
Create the PlatformClient
The SDK is easy to use: you only have one single object that deals with
all your queries:
This object should be instantiated only once per connection. Here's how to create it:
import NewzuluPlatform let domain: Domain = .europe // Replace with your domain let vhost: Int = 98 // Replace with your vhost let platformClient = PlatformClient(domain: domain, vhost: vhost)
domainwith the actual domain you want to use (
vhostwith your vhost.
That is it, you are now ready to access Newzulu Platform.