Skip to content

Commit 9144d5c

Browse files
committed
fix: Add warning for missing modulemap in src
1 parent 8fa54af commit 9144d5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/services/ios-project-service.ts

+3
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
646646
const group = this.getRootGroup(groupName, sourceFolderPath);
647647
project.addPbxGroup(group.files, group.name, group.path, null, { isMain: true, filesRelativeToProject: true });
648648
project.addToHeaderSearchPaths(group.path);
649+
if (!this.$fs.exists(path.join(sourceFolderPath, "module.modulemap"))) {
650+
this.$logger.warn(`warning: Directory ${sourceFolderPath} with native iOS source code doesn't contain a modulemap file. Metadata for it will not be generated and it will not be accessible from JavaScript. To learn more see https://docs.nativescript.org/guides/ios-source-code`);
651+
}
649652
this.savePbxProj(project, projectData);
650653
}
651654

0 commit comments

Comments
 (0)