@@ -259,14 +259,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
259259 return ;
260260 }
261261
262- const checkEnvironmentRequirementsOutput = await this . $platformEnvironmentRequirements . checkEnvironmentRequirements (
263- {
262+ const checkEnvironmentRequirementsOutput =
263+ await this . $platformEnvironmentRequirements . checkEnvironmentRequirements ( {
264264 platform : this . getPlatformData ( projectData ) . normalizedPlatformName ,
265265 projectDir : projectData . projectDir ,
266266 options,
267267 notConfiguredEnvOptions,
268- }
269- ) ;
268+ } ) ;
270269
271270 if (
272271 checkEnvironmentRequirementsOutput &&
@@ -567,6 +566,12 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
567566 ) : Promise < void > {
568567 const projectRoot = path . join ( projectData . platformsDir , "ios" ) ;
569568 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+
570575 const resourcesDirectoryPath = projectData . getAppResourcesDirectoryPath ( ) ;
571576
572577 const provision = prepareData && prepareData . provision ;
@@ -653,7 +658,6 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
653658 ) ;
654659 }
655660
656- const pbxProjPath = this . getPbxProjPath ( projectData ) ;
657661 this . $iOSWatchAppService . removeWatchApp ( { pbxProjPath } ) ;
658662 const addedWatchApp = await this . $iOSWatchAppService . addWatchAppFromPath ( {
659663 watchAppFolderPath : path . join (
@@ -677,9 +681,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
677681 const projectAppResourcesPath = projectData . getAppResourcesDirectoryPath (
678682 projectData . projectDir
679683 ) ;
680- const platformsAppResourcesPath = this . getAppResourcesDestinationDirectoryPath (
681- projectData
682- ) ;
684+ const platformsAppResourcesPath =
685+ this . getAppResourcesDestinationDirectoryPath ( projectData ) ;
683686
684687 this . $fs . deleteDirectory ( platformsAppResourcesPath ) ;
685688 this . $fs . ensureDirectoryExists ( platformsAppResourcesPath ) ;
@@ -959,6 +962,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
959962 projectData ,
960963 platformData
961964 ) ;
965+ await this . $cocoapodsService . applyPodfileFromExtensions (
966+ projectData ,
967+ platformData
968+ ) ;
962969
963970 const projectPodfilePath = this . $cocoapodsService . getProjectPodfilePath (
964971 platformData . projectRoot
@@ -983,10 +990,6 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
983990 }
984991
985992 await this . $spmService . applySPMPackages ( platformData , projectData ) ;
986-
987- const pbxProjPath = this . getPbxProjPath ( projectData ) ;
988- this . $iOSExtensionsService . removeExtensions ( { pbxProjPath } ) ;
989- await this . addExtensions ( projectData , pluginsData ) ;
990993 }
991994
992995 public beforePrepareAllPlugins (
@@ -1031,9 +1034,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
10311034 if ( hasTeamId ) {
10321035 if ( signing && signing . style === "Automatic" ) {
10331036 if ( signing . team !== teamId ) {
1034- const teamIdsForName = await this . $iOSProvisionService . getTeamIdsWithName (
1035- teamId
1036- ) ;
1037+ const teamIdsForName =
1038+ await this . $iOSProvisionService . getTeamIdsWithName ( teamId ) ;
10371039 if ( ! teamIdsForName . some ( ( id ) => id === signing . team ) ) {
10381040 changesInfo . signingChanged = true ;
10391041 }
@@ -1179,14 +1181,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
11791181 ) ;
11801182 const platformData = this . getPlatformData ( projectData ) ;
11811183 const pbxProjPath = this . getPbxProjPath ( projectData ) ;
1182- const addedExtensionsFromResources = await this . $iOSExtensionsService . addExtensionsFromPath (
1183- {
1184+ const addedExtensionsFromResources =
1185+ await this . $iOSExtensionsService . addExtensionsFromPath ( {
11841186 extensionsFolderPath : resorcesExtensionsPath ,
11851187 projectData,
11861188 platformData,
11871189 pbxProjPath,
1188- }
1189- ) ;
1190+ } ) ;
11901191 let addedExtensionsFromPlugins = false ;
11911192 for ( const pluginIndex in pluginsData ) {
11921193 const pluginData = pluginsData [ pluginIndex ] ;
@@ -1198,14 +1199,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
11981199 pluginPlatformsFolderPath ,
11991200 constants . NATIVE_EXTENSION_FOLDER
12001201 ) ;
1201- const addedExtensionFromPlugin = await this . $iOSExtensionsService . addExtensionsFromPath (
1202- {
1202+ const addedExtensionFromPlugin =
1203+ await this . $iOSExtensionsService . addExtensionsFromPath ( {
12031204 extensionsFolderPath : extensionPath ,
12041205 projectData,
12051206 platformData,
12061207 pbxProjPath,
1207- }
1208- ) ;
1208+ } ) ;
12091209 addedExtensionsFromPlugins =
12101210 addedExtensionsFromPlugins || addedExtensionFromPlugin ;
12111211 }
@@ -1460,9 +1460,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
14601460 tempEntitlementsDir ,
14611461 "set-entitlements.xcconfig"
14621462 ) ;
1463- const entitlementsRelativePath = this . $iOSEntitlementsService . getPlatformsEntitlementsRelativePath (
1464- projectData
1465- ) ;
1463+ const entitlementsRelativePath =
1464+ this . $iOSEntitlementsService . getPlatformsEntitlementsRelativePath (
1465+ projectData
1466+ ) ;
14661467 this . $fs . writeFile (
14671468 tempEntitlementsFilePath ,
14681469 `CODE_SIGN_ENTITLEMENTS = ${ entitlementsRelativePath } ${ EOL } `
@@ -1491,8 +1492,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
14911492 this . getPlatformData ( projectData ) . normalizedPlatformName ,
14921493 this . getPlatformData ( projectData ) . configurationFileName
14931494 ) ;
1494- const mergedPlistPath = this . getPlatformData ( projectData )
1495- . configurationFilePath ;
1495+ const mergedPlistPath =
1496+ this . getPlatformData ( projectData ) . configurationFilePath ;
14961497
14971498 if ( ! this . $fs . exists ( infoPlistPath ) || ! this . $fs . exists ( mergedPlistPath ) ) {
14981499 return ;
0 commit comments