.then( (applicationSupportPath) => { let logPath = path.join(applicationSupportPath, `${path.basename(projectRootPath)}.sim.console.log`); // Start a new log whenever we launch sim if (fs.existsSync()) { fs.unlinkSync(logPath); } return iossim.launch(jupiterPath, target, logPath, false, args); })
function startSim(appPath, target) { var logPath = path.join(cordovaPath, 'console.log'); return iossim.launch(appPath, 'com.apple.CoreSimulator.SimDeviceType.' + target, logPath, '--exit'); }