NSSTV Part 1 Project Setup

Episode #198 | 8 minutes | published on November 19, 2015 | Uses tvOS-9.0
Subscribers Only
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
blog comments powered by Disqus