function getIOSProjectname()

in src/ConfigChanges/ConfigFile.js [240:252]


function getIOSProjectname (project_dir) {
    const matches = modules.glob.sync('*.xcodeproj', { cwd: project_dir, onlyDirectories: true });

    if (matches.length !== 1) {
        const msg = matches.length === 0
            ? 'Does not appear to be an xcode project, no xcode project file'
            : 'There are multiple *.xcodeproj dirs';

        throw new Error(`${msg} in ${project_dir}`);
    }

    return path.basename(matches[0], '.xcodeproj');
}