import { XcodeProject , UUID } from 'xcode' ; param filePath param param1 . target param param1 . group export 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 ) ; }