Episode #198

NSSTV Part 1 Project Setup

8 minutes
Published on November 19, 2015

This video is only available to subscribers. Get access to this video and 586 others.

In this episode we start a new series on building the NSScreencast tvOS application. We'll start off by creating the Xcode project, initialize our Gemfile and Podfile for dependencies, as well as talk about a few ways of getting around issues where a 3rd party library doesn't indicate that it supports tvOS yet.

Episode Links

use_frameworks!

target 'NSScreencastTVDemo' do
  platform :tvos, '9.0'
  pod 'Argo'
  pod 'SSKeychain'

  # this pod was fixed in master, so we can specify a full git url here
  pod 'SDWebImage', git: 'https://github.com/rs/SDWebImage.git', branch: 'master'

  # we can use a custom pod spec here if we want to override it locally
  pod 'FXReachability', podspec: 'podspecs/FXReachability.podspec.json'
end

Alternatively we can use cocoapods-expert-difficulty to ignore these platform requirements:

use_frameworks!
plugin 'cocoapods-expert-difficulty'

target 'NSScreencastTVDemo' do
  platform :tvos, '9.0'
  pod 'Argo'
  pod 'SSKeychain'
  pod 'SDWebImage'
  pod 'FXReachability'
end

This episode uses Tvos 9.0.