Skip to content

Instantly share code, notes, and snippets.

@kdawgwilk
Created February 8, 2016 06:22
Show Gist options
  • Save kdawgwilk/3e78ab24aec6ec4e5a94 to your computer and use it in GitHub Desktop.
Save kdawgwilk/3e78ab24aec6ec4e5a94 to your computer and use it in GitHub Desktop.
Cross platform podfile with unit/ui test targets
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
def shared_pods
pod 'Fabric'
pod 'Crashlytics'
end
def shared_testing_pods
pod 'Quick'
pod 'Nimble'
end
####################################
################ iOS ###############
####################################
target 'iOS' do
platform :ios, '8.0'
shared_pods
target 'iOSTests' do
inherit! :search_paths
shared_testing_pods
end
target 'iOSUITests' do
inherit! :search_paths
shared_testing_pods
end
end
####################################
################ tvOS ##############
####################################
target 'tvOS' do
platform :tvos, '9.0'
shared_pods
target 'tvOSTests' do
inherit! :search_paths
shared_testing_pods
end
target 'tvOSUITests' do
inherit! :search_paths
shared_testing_pods
end
end
####################################
################ OSX ###############
####################################
target 'OSX' do
platform :osx, '10.10'
shared_pods
target 'OSXTests' do
inherit! :search_paths
shared_testing_pods
end
target 'OSXUITests' do
inherit! :search_paths
shared_testing_pods
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment