Skip to content

Commit d96fde1

Browse files
committed
fix: ensure plugin path is defined to process configs
1 parent b2bad0c commit d96fde1

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

lib/services/ios-project-service.ts

+14-12
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)