@@ -258,6 +258,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
258
258
<dict>
259
259
<key>method</key>
260
260
<string>${ exportOptionsMethod } </string>
261
+ <key>uploadBitcode</key>
262
+ <false/>
261
263
</dict>
262
264
</plist>` ;
263
265
@@ -1346,30 +1348,16 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1346
1348
}
1347
1349
}
1348
1350
1349
- private async getEmbeddedPlistData ( projectData : IProjectData ) : Promise < IDictionary < any > > {
1350
- let embeddedPlistContents = "" ;
1351
+ private getExportOptionsMethod ( projectData : IProjectData ) : string {
1351
1352
const embeddedMobileProvisionPath = path . join ( this . getPlatformData ( projectData ) . deviceBuildOutputPath , `${ projectData . projectName } .app` , "embedded.mobileprovision" ) ;
1352
-
1353
- embeddedPlistContents = await this . $childProcess . exec ( `security cms -D -i ${ embeddedMobileProvisionPath } ` ) ;
1354
-
1355
- return plist . parse ( embeddedPlistContents ) ;
1356
- }
1357
-
1358
- private async getExportOptionsMethod ( projectData : IProjectData ) : Promise < "app-store" | "ad-hoc" | "enterprise" | "development" > {
1359
- const embeddedPlistData = await this . getEmbeddedPlistData ( projectData ) ;
1360
-
1361
- if ( embeddedPlistData . ProvisionsAllDevices ) {
1362
- return "enterprise" ;
1363
- } else if ( embeddedPlistData . ProvisionedDevices && embeddedPlistData . ProvisionedDevices . length ) {
1364
- const entitlements = embeddedPlistData . Entitlements ;
1365
- if ( entitlements [ "get-task-allow" ] ) {
1366
- return "development" ;
1367
- } else {
1368
- return "ad-hoc" ;
1369
- }
1370
- } else {
1371
- return "app-store" ;
1372
- }
1353
+ const provision = mobileprovision . provision . readFromFile ( embeddedMobileProvisionPath ) ;
1354
+
1355
+ return {
1356
+ "Development" : "development" ,
1357
+ "AdHoc" : "ad-hoc" ,
1358
+ "Distribution" : "app-store" ,
1359
+ "Enterprise" : "enterprise"
1360
+ } [ provision . Type ] ;
1373
1361
}
1374
1362
}
1375
1363
0 commit comments