hooks/AfterPluginInstall.js
function() {
        let xcConfigBuildFilePath = path.join(cwd, 'platforms', 'ios', 'cordova', 'build.xcconfig');

        try {
            let xcConfigBuildFileExists = fs.accessSync(xcConfigBuildFilePath);
        }
        catch(e) {
            console.log('Could not locate build.xcconfig, you will need to set HEADER_SEARCH_PATHS manually');
            return;
        }

        console.log(`xcConfigBuildFilePath: ${xcConfigBuildFilePath}`);

        addHeaderSearchPaths(xcConfigBuildFilePath);
    }
function() {
        let xcConfigBuildFilePath = path.join(cwd, 'platforms', 'ios', 'cordova', 'build.xcconfig');

        try {
            let xcConfigBuildFileExists = fs.accessSync(xcConfigBuildFilePath);
        }
        catch(e) {
            console.log('Could not locate build.xcconfig, you will need to set HEADER_SEARCH_PATHS manually');
            return;
        }

        console.log(`xcConfigBuildFilePath: ${xcConfigBuildFilePath}`);

        addHeaderSearchPaths(xcConfigBuildFilePath);
    }
function ( ) { let xcConfigBuildFilePath = path . join ( cwd , 'platforms' , 'ios' , 'cordova' , 'build.xcconfig' ) ; try { let xcConfigBuildFileExists = fs . accessSync ( xcConfigBuildFilePath ) ; } catch ( e ) { console . log ( 'Could not locate build.xcconfig, you will need to set HEADER_SEARCH_PATHS manually' ) ; return ; } console . log ( ` ${ xcConfigBuildFilePath } ` ) ; addHeaderSearchPaths ( xcConfigBuildFilePath ) ; }
Modify the xcconfig build path and pass the resulting file path to the addHeaderSearchPaths function.
Modify the xcconfig build path and pass the resulting file path to the addHeaderSearchPaths function .