async function deployToSim (appPath, target) {
    events.emit('log', 'Deploying to simulator');

    if (!target) {
        // Select target device for emulator (preferring iPhone Emulators)
        const emulators = await module.exports.execListEmulatorImages();
        const iPhoneEmus = emulators.filter(emulator => emulator.startsWith('iPhone'));
        target = iPhoneEmus.concat(emulators)[0];
        events.emit('log', `No target specified for emulator. Deploying to "${target}" simulator.`);
    }

    return module.exports.startSim(appPath, target);
}
Deploy specified app package to ios-sim simulator
@param  {String} appPath Path to application package
@param  {String} target  Target device type
@return {Promise}        Resolves when deploy succeeds otherwise rejects