Skip to content


Repository files navigation

LaunchDarkly sample tvOS application

We've built a simple mobile application that demonstrates how LaunchDarkly's SDK works.

Below, you'll find the build procedure. For more comprehensive instructions, you can visit your Quickstart page or the iOS reference guide.

Build instructions

  1. Make sure you have Xcode installed
  2. Make sure you have Carthage installed
  3. Run carthage update --platform tvOS --use-xcframeworks to build XCFrameworks for the LaunchDarkly SDK
  4. Open hello-tvos.xcodeproj in XCode
  5. Set the value of sdkKey in AppDelegate.swift to your LaunchDarkly mobile key. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, set featureFlagKey in ViewController.swift to the flag key.
    // AppDelegate.swift
    let sdkKey = ""

    // ViewController.swift
    let featureFlagKey = "sample-feature"

You should see the message "The feature flag evaluates to .", the application will run continuously and react to the flag changes in LaunchDarkly.