@@ -1151,6 +1151,21 @@ describe("buildProject", () => {
1151
1151
name : "shouldn't pass architecture to xcodebuild command when frameworkVersion is 5.1.0" ,
1152
1152
frameworkVersion : "5.1.0" ,
1153
1153
deploymentTarget : "11.0"
1154
+ } , {
1155
+ name : "should pass only 64bit architecture to xcodebuild command when frameworkVersion is 5.0.0 and deployment target is 11.0" ,
1156
+ frameworkVersion : "5.0.0" ,
1157
+ deploymentTarget : "11.0" ,
1158
+ expectedArchs : "arm64"
1159
+ } , {
1160
+ name : "should pass both architectures to xcodebuild command when frameworkVersion is 5.0.0 and deployment target is 10.0" ,
1161
+ frameworkVersion : "5.0.0" ,
1162
+ deploymentTarget : "10.0" ,
1163
+ expectedArchs : "armv7 arm64"
1164
+ } , {
1165
+ name : "should pass both architectures to xcodebuild command when frameworkVersion is 5.0.0 and no deployment target" ,
1166
+ frameworkVersion : "5.0.0" ,
1167
+ deploymentTarget : null ,
1168
+ expectedArchs : "armv7 arm64"
1154
1169
} ] ;
1155
1170
1156
1171
executeTests ( testCases , { buildForDevice : true } ) ;
@@ -1175,6 +1190,21 @@ describe("buildProject", () => {
1175
1190
name : "shouldn't pass architecture to xcodebuild command when frameworkVersion is 5.1.0" ,
1176
1191
frameworkVersion : "5.1.0" ,
1177
1192
deploymentTarget : "11.0"
1193
+ } , {
1194
+ name : "should pass only 64bit architecture to xcodebuild command when frameworkVersion is 5.0.0 and deployment target is 11.0" ,
1195
+ frameworkVersion : "5.0.0" ,
1196
+ deploymentTarget : "11.0" ,
1197
+ expectedArchs : "x86_64"
1198
+ } , {
1199
+ name : "should pass both architectures to xcodebuild command when frameworkVersion is 5.0.0 and deployment target is 10.0" ,
1200
+ frameworkVersion : "5.0.0" ,
1201
+ deploymentTarget : "10.0" ,
1202
+ expectedArchs : "i386 x86_64"
1203
+ } , {
1204
+ name : "should pass both architectures to xcodebuild command when frameworkVersion is 5.0.0 and no deployment target" ,
1205
+ frameworkVersion : "5.0.0" ,
1206
+ deploymentTarget : null ,
1207
+ expectedArchs : "i386 x86_64"
1178
1208
} ] ;
1179
1209
1180
1210
executeTests ( testCases , { buildForDevice : false } ) ;
0 commit comments