Add the iOS SDK

Download the SDK and add the SDK to your iOS project.

To add a player to your app, you must import the JW Player SDK for iOS and then configure your project. To complete these tasks, review the table below and choose the approach that suits your implementation needs.

CocoaPods• No manual SDK download is required.
• Core and optional modules will be added to your app.
• Your main project will be modified.
Local• JW Player SDK for iOS must be downloaded and unzipped.
• Core and optional modules must be manually added to your app.

If you have any problems completing any of these tasks and have a valid JW Player license, please log a support ticket for assistance.


Install CocoaPods and create a Podfile

  1. At the Terminal prompt, enter gem install cocoapods to install CocoaPods.
  2. Enter cd <path-to-your-project>/<your-project>/ to navigate to your project directory.
  3. Enter pod init to create a file named Podfile. Podfile defines the dependencies for your project.

Edit the Podfile

  1. In a text editor, open Podfile.
  2. Set the iOS version to 10.0 or greater.
  3. If you are using Objective-C, you can comment out use_frameworks!.
  4. Add JWPlayerKit as a dependency. To add a specific version of the SDK, be sure to use the proper Podfile syntax.
  5. Save Podfile and close the text editor.
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

target 'MyAwesomeProject' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks

  # Pods for MyAwesomeProject
  pod 'JWPlayerKit', '>= 4.0.0'

Install the SDK

  1. At the Terminal prompt of your project directory, enter pod install to install the JW Player iOS SDK.
  2. Open the .xcworkspace file for your project to launch Xcode.

You have retrieved your JW Player license key and imported the JW Player iOS SDK into your project. You can now configure your project.


Download the SDK

  1. From the Player Downloads & Keys page, scroll to the Downloads table.
  2. Select a version from the VERSION drop-down menu
  3. Click the icon in the DOWNLOAD column.
  4. On your computer, unzip the JW Player iOS SDK .zip file.

Import the SDK into your project

  1. From within Xcode, select your project from the project navigator.
  2. Select the target in the left column of the project editor.
  3. Click General.
  4. In the Linked Frameworks and Libraries, click +.
  5. Click Add Other.
  6. Select JWPlayerKit.xcframework from the jwplayer-ios-sdk/Framework folder on your computer.
  7. Click Open.

You have retrieved your JW Player license key and imported the JW Player SDK for iOS into your project. You can now configure your project.

Did this page help you?