File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ class TestRunningValidator < Pod::Validator
77 TEST_TARGET = 'Tests'
88
99 attr_accessor :test_files
10+ attr_accessor :iphone_simulator
11+ attr_accessor :tvos_simulator
12+
13+ def initialize ( spec_or_path , source_urls )
14+ super ( spec_or_path , source_urls )
15+ self . iphone_simulator = 'iPhone 6'
16+ self . tvos_simulator = 'Apple TV 1080p'
17+ end
1018
1119 def create_app_project
1220 super . tap do
@@ -67,12 +75,12 @@ def run_tests
6775 case consumer . platform_name
6876 when :ios
6977 command += %w( CODE_SIGN_IDENTITY=- -sdk iphonesimulator )
70- command += Fourflusher ::SimControl . new . destination ( 'iPhone 4s' , deployment_target )
78+ command += Fourflusher ::SimControl . new . destination ( iphone_simulator , deployment_target )
7179 when :osx
7280 command += %w( LD_RUNPATH_SEARCH_PATHS=@loader_path/../Frameworks )
7381 when :tvos
7482 command += %w( CODE_SIGN_IDENTITY=- -sdk appletvsimulator )
75- command += Fourflusher ::SimControl . new . destination ( 'Apple TV 1080p' , deployment_target )
83+ command += Fourflusher ::SimControl . new . destination ( tvos_simulator , deployment_target )
7684 else
7785 return # skip watchos
7886 end
You can’t perform that action at this time.
0 commit comments