File tree 1 file changed +14
-12
lines changed
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
1179
1179
1180
1180
const pluginSpmPackages = [ ] ;
1181
1181
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
1192
1186
) ;
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
+ }
1195
1197
}
1196
1198
}
1197
1199
}
You can’t perform that action at this time.
0 commit comments