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
7
7
TEST_TARGET = 'Tests'
8
8
9
9
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
10
18
11
19
def create_app_project
12
20
super . tap do
@@ -67,12 +75,12 @@ def run_tests
67
75
case consumer . platform_name
68
76
when :ios
69
77
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 )
71
79
when :osx
72
80
command += %w( LD_RUNPATH_SEARCH_PATHS=@loader_path/../Frameworks )
73
81
when :tvos
74
82
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 )
76
84
else
77
85
return # skip watchos
78
86
end
You can’t perform that action at this time.
0 commit comments