bin/templates/scripts/cordova/lib/prepare.js
function updateLaunchStoryboardImages (cordovaProject, locations) {
    var splashScreens = cordovaProject.projectConfig.getSplashScreens('ios');
    var platformProjDir = path.relative(cordovaProject.root, locations.xcodeCordovaProj);
    var launchStoryboardImagesDir = getLaunchStoryboardImagesDir(cordovaProject.root, platformProjDir);

    if (launchStoryboardImagesDir) {
        var resourceMap = mapLaunchStoryboardResources(splashScreens, launchStoryboardImagesDir);
        var contentsJSON = getLaunchStoryboardContentsJSON(splashScreens, launchStoryboardImagesDir);

        events.emit('verbose', 'Updating launch storyboard images at ' + launchStoryboardImagesDir);
        FileUpdater.updatePaths(
            resourceMap, { rootDir: cordovaProject.root }, logFileOp);

        events.emit('verbose', 'Updating Storyboard image set contents.json');
        fs.writeFileSync(path.join(cordovaProject.root, launchStoryboardImagesDir, 'Contents.json'),
            JSON.stringify(contentsJSON, null, 2));
    }
}
function updateLaunchStoryboardImages (cordovaProject, locations) {
    var splashScreens = cordovaProject.projectConfig.getSplashScreens('ios');
    var platformProjDir = path.relative(cordovaProject.root, locations.xcodeCordovaProj);
    var launchStoryboardImagesDir = getLaunchStoryboardImagesDir(cordovaProject.root, platformProjDir);

    if (launchStoryboardImagesDir) {
        var resourceMap = mapLaunchStoryboardResources(splashScreens, launchStoryboardImagesDir);
        var contentsJSON = getLaunchStoryboardContentsJSON(splashScreens, launchStoryboardImagesDir);

        events.emit('verbose', 'Updating launch storyboard images at ' + launchStoryboardImagesDir);
        FileUpdater.updatePaths(
            resourceMap, { rootDir: cordovaProject.root }, logFileOp);

        events.emit('verbose', 'Updating Storyboard image set contents.json');
        fs.writeFileSync(path.join(cordovaProject.root, launchStoryboardImagesDir, 'Contents.json'),
            JSON.stringify(contentsJSON, null, 2));
    }
}
function updateLaunchStoryboardImages ( cordovaProject , locations ) { var splashScreens = cordovaProject . projectConfig . getSplashScreens ( 'ios' ) ; var platformProjDir = path . relative ( cordovaProject . root , locations . xcodeCordovaProj ) ; var launchStoryboardImagesDir = getLaunchStoryboardImagesDir ( cordovaProject . root , platformProjDir ) ; if ( launchStoryboardImagesDir ) { var resourceMap = mapLaunchStoryboardResources ( splashScreens , launchStoryboardImagesDir ) ; var contentsJSON = getLaunchStoryboardContentsJSON ( splashScreens , launchStoryboardImagesDir ) ; events . emit ( 'verbose' , 'Updating launch storyboard images at ' + launchStoryboardImagesDir ) ; FileUpdater . updatePaths ( resourceMap , { rootDir : cordovaProject . root } , logFileOp ) ; events . emit ( 'verbose' , 'Updating Storyboard image set contents.json' ) ; fs . writeFileSync ( path . join ( cordovaProject . root , launchStoryboardImagesDir , 'Contents.json' ) , JSON . stringify ( contentsJSON , null , 2 ) ) ; } }
Update the images for the Launch Storyboard and updates the image set's contents.json file appropriately.

@param  {Object} cordovaProject     The cordova project
@param  {Object} locations          A dictionary containing useful location paths
Update the images for the Launch Storyboard and updates the image set s contents . json file appropriately .