@@ -259,14 +259,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
259
259
return ;
260
260
}
261
261
262
- const checkEnvironmentRequirementsOutput = await this . $platformEnvironmentRequirements . checkEnvironmentRequirements (
263
- {
262
+ const checkEnvironmentRequirementsOutput =
263
+ await this . $platformEnvironmentRequirements . checkEnvironmentRequirements ( {
264
264
platform : this . getPlatformData ( projectData ) . normalizedPlatformName ,
265
265
projectDir : projectData . projectDir ,
266
266
options,
267
267
notConfiguredEnvOptions,
268
- }
269
- ) ;
268
+ } ) ;
270
269
271
270
if (
272
271
checkEnvironmentRequirementsOutput &&
@@ -567,6 +566,12 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
567
566
) : Promise < void > {
568
567
const projectRoot = path . join ( projectData . platformsDir , "ios" ) ;
569
568
const platformData = this . getPlatformData ( projectData ) ;
569
+
570
+ const pluginsData = this . getAllProductionPlugins ( projectData ) ;
571
+ const pbxProjPath = this . getPbxProjPath ( projectData ) ;
572
+ this . $iOSExtensionsService . removeExtensions ( { pbxProjPath } ) ;
573
+ await this . addExtensions ( projectData , pluginsData ) ;
574
+
570
575
const resourcesDirectoryPath = projectData . getAppResourcesDirectoryPath ( ) ;
571
576
572
577
const provision = prepareData && prepareData . provision ;
@@ -653,7 +658,6 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
653
658
) ;
654
659
}
655
660
656
- const pbxProjPath = this . getPbxProjPath ( projectData ) ;
657
661
this . $iOSWatchAppService . removeWatchApp ( { pbxProjPath } ) ;
658
662
const addedWatchApp = await this . $iOSWatchAppService . addWatchAppFromPath ( {
659
663
watchAppFolderPath : path . join (
@@ -677,9 +681,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
677
681
const projectAppResourcesPath = projectData . getAppResourcesDirectoryPath (
678
682
projectData . projectDir
679
683
) ;
680
- const platformsAppResourcesPath = this . getAppResourcesDestinationDirectoryPath (
681
- projectData
682
- ) ;
684
+ const platformsAppResourcesPath =
685
+ this . getAppResourcesDestinationDirectoryPath ( projectData ) ;
683
686
684
687
this . $fs . deleteDirectory ( platformsAppResourcesPath ) ;
685
688
this . $fs . ensureDirectoryExists ( platformsAppResourcesPath ) ;
@@ -959,6 +962,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
959
962
projectData ,
960
963
platformData
961
964
) ;
965
+ await this . $cocoapodsService . applyPodfileFromExtensions (
966
+ projectData ,
967
+ platformData
968
+ ) ;
962
969
963
970
const projectPodfilePath = this . $cocoapodsService . getProjectPodfilePath (
964
971
platformData . projectRoot
@@ -983,10 +990,6 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
983
990
}
984
991
985
992
await this . $spmService . applySPMPackages ( platformData , projectData ) ;
986
-
987
- const pbxProjPath = this . getPbxProjPath ( projectData ) ;
988
- this . $iOSExtensionsService . removeExtensions ( { pbxProjPath } ) ;
989
- await this . addExtensions ( projectData , pluginsData ) ;
990
993
}
991
994
992
995
public beforePrepareAllPlugins (
@@ -1031,9 +1034,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
1031
1034
if ( hasTeamId ) {
1032
1035
if ( signing && signing . style === "Automatic" ) {
1033
1036
if ( signing . team !== teamId ) {
1034
- const teamIdsForName = await this . $iOSProvisionService . getTeamIdsWithName (
1035
- teamId
1036
- ) ;
1037
+ const teamIdsForName =
1038
+ await this . $iOSProvisionService . getTeamIdsWithName ( teamId ) ;
1037
1039
if ( ! teamIdsForName . some ( ( id ) => id === signing . team ) ) {
1038
1040
changesInfo . signingChanged = true ;
1039
1041
}
@@ -1179,14 +1181,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
1179
1181
) ;
1180
1182
const platformData = this . getPlatformData ( projectData ) ;
1181
1183
const pbxProjPath = this . getPbxProjPath ( projectData ) ;
1182
- const addedExtensionsFromResources = await this . $iOSExtensionsService . addExtensionsFromPath (
1183
- {
1184
+ const addedExtensionsFromResources =
1185
+ await this . $iOSExtensionsService . addExtensionsFromPath ( {
1184
1186
extensionsFolderPath : resorcesExtensionsPath ,
1185
1187
projectData,
1186
1188
platformData,
1187
1189
pbxProjPath,
1188
- }
1189
- ) ;
1190
+ } ) ;
1190
1191
let addedExtensionsFromPlugins = false ;
1191
1192
for ( const pluginIndex in pluginsData ) {
1192
1193
const pluginData = pluginsData [ pluginIndex ] ;
@@ -1198,14 +1199,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
1198
1199
pluginPlatformsFolderPath ,
1199
1200
constants . NATIVE_EXTENSION_FOLDER
1200
1201
) ;
1201
- const addedExtensionFromPlugin = await this . $iOSExtensionsService . addExtensionsFromPath (
1202
- {
1202
+ const addedExtensionFromPlugin =
1203
+ await this . $iOSExtensionsService . addExtensionsFromPath ( {
1203
1204
extensionsFolderPath : extensionPath ,
1204
1205
projectData,
1205
1206
platformData,
1206
1207
pbxProjPath,
1207
- }
1208
- ) ;
1208
+ } ) ;
1209
1209
addedExtensionsFromPlugins =
1210
1210
addedExtensionsFromPlugins || addedExtensionFromPlugin ;
1211
1211
}
@@ -1460,9 +1460,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
1460
1460
tempEntitlementsDir ,
1461
1461
"set-entitlements.xcconfig"
1462
1462
) ;
1463
- const entitlementsRelativePath = this . $iOSEntitlementsService . getPlatformsEntitlementsRelativePath (
1464
- projectData
1465
- ) ;
1463
+ const entitlementsRelativePath =
1464
+ this . $iOSEntitlementsService . getPlatformsEntitlementsRelativePath (
1465
+ projectData
1466
+ ) ;
1466
1467
this . $fs . writeFile (
1467
1468
tempEntitlementsFilePath ,
1468
1469
`CODE_SIGN_ENTITLEMENTS = ${ entitlementsRelativePath } ${ EOL } `
@@ -1491,8 +1492,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
1491
1492
this . getPlatformData ( projectData ) . normalizedPlatformName ,
1492
1493
this . getPlatformData ( projectData ) . configurationFileName
1493
1494
) ;
1494
- const mergedPlistPath = this . getPlatformData ( projectData )
1495
- . configurationFilePath ;
1495
+ const mergedPlistPath =
1496
+ this . getPlatformData ( projectData ) . configurationFilePath ;
1496
1497
1497
1498
if ( ! this . $fs . exists ( infoPlistPath ) || ! this . $fs . exists ( mergedPlistPath ) ) {
1498
1499
return ;
0 commit comments