File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -1179,19 +1179,21 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
11791179
11801180 const pluginSpmPackages = [ ] ;
11811181 for ( const plugin of pluginsData ) {
1182- const pluginConfigPath = path . join (
1183- plugin . fullPath ,
1184- constants . CONFIG_FILE_NAME_TS
1185- ) ;
1186- if ( this . $fs . exists ( pluginConfigPath ) ) {
1187- const config = this . $projectConfigService . readConfig ( plugin . fullPath ) ;
1188- const packages = _ . get (
1189- config ,
1190- `${ platformData . platformNameLowerCase } .SPMPackages` ,
1191- [ ]
1182+ if ( plugin . fullPath ) {
1183+ const pluginConfigPath = path . join (
1184+ plugin . fullPath ,
1185+ constants . CONFIG_FILE_NAME_TS
11921186 ) ;
1193- if ( packages . length ) {
1194- pluginSpmPackages . push ( ...packages ) ;
1187+ if ( this . $fs . exists ( pluginConfigPath ) ) {
1188+ const config = this . $projectConfigService . readConfig ( plugin . fullPath ) ;
1189+ const packages = _ . get (
1190+ config ,
1191+ `${ platformData . platformNameLowerCase } .SPMPackages` ,
1192+ [ ]
1193+ ) ;
1194+ if ( packages . length ) {
1195+ pluginSpmPackages . push ( ...packages ) ;
1196+ }
11951197 }
11961198 }
11971199 }
You can’t perform that action at this time.
0 commit comments