@@ -15,6 +15,9 @@ platform :ios do
1515 before_all do
1616 end
1717
18+ DEVICE_NAME = 'iPhone 17'
19+ DESTINATION = "platform=iOS Simulator,name=#{ DEVICE_NAME } "
20+
1821 lane :install do
1922 bundle_install
2023
@@ -39,7 +42,7 @@ platform :ios do
3942 configuration : 'Release' ,
4043 build : true ,
4144 clean : true ,
42- destination : 'platform=iOS Simulator,name=iPhone 15,OS=17.2'
45+ destination : DESTINATION
4346 )
4447
4548 # FlexLayoutSample from FlexLayout.xcworkspace
@@ -49,7 +52,7 @@ platform :ios do
4952 configuration : 'Release' ,
5053 build : true ,
5154 # clean: true,
52- destination : 'platform=iOS Simulator,name=iPhone 15,OS=17.2'
55+ destination : DESTINATION
5356 )
5457
5558 # Example SPM (Swift Package Manager)
@@ -59,12 +62,12 @@ platform :ios do
5962 configuration : 'Release' ,
6063 build : true ,
6164 clean : true ,
62- destination : 'platform=iOS Simulator,name=iPhone 15,OS=17.2'
65+ destination : DESTINATION
6366 )
6467 end
6568
6669 lane :tests do
67- scan ( scheme : 'FlexLayoutInner' , workspace : 'FlexLayout.xcworkspace' , device : 'iPhone 15' )
70+ scan ( scheme : 'FlexLayoutInner' , workspace : 'FlexLayout.xcworkspace' , device : DEVICE_NAME )
6871 end
6972
7073 lane :doc do
0 commit comments