"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addStoryboardFileToProject = void 0; /** * @param filePath * @param param1.target PBXNativeTarget reference * @param param1.group PBXGroup reference */ function addStoryboardFileToProject(pbxProject, filePath, { target, group }) { const file = pbxProject.addFile(filePath, group, { lastKnownFileType: 'file.storyboard', defaultEncoding: 4, target, }); if (!file) { throw new Error('File already exists in the project'); } delete pbxProject.pbxFileReferenceSection()[file.fileRef].explicitFileType; delete pbxProject.pbxFileReferenceSection()[file.fileRef].includeInIndex; file.uuid = pbxProject.generateUuid(); file.target = target; pbxProject.addToPbxBuildFileSection(file); pbxProject.addToPbxResourcesBuildPhase(file); } exports.addStoryboardFileToProject = addStoryboardFileToProject; //# sourceMappingURL=index.js.map