@@ -1151,6 +1151,21 @@ describe("buildProject", () => {
11511151 name : "shouldn't pass architecture to xcodebuild command when frameworkVersion is 5.1.0" ,
11521152 frameworkVersion : "5.1.0" ,
11531153 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"
11541169 } ] ;
11551170
11561171 executeTests ( testCases , { buildForDevice : true } ) ;
@@ -1175,6 +1190,21 @@ describe("buildProject", () => {
11751190 name : "shouldn't pass architecture to xcodebuild command when frameworkVersion is 5.1.0" ,
11761191 frameworkVersion : "5.1.0" ,
11771192 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"
11781208 } ] ;
11791209
11801210 executeTests ( testCases , { buildForDevice : false } ) ;
0 commit comments