How to use the node-ios-device.log function in node-ios-device

To help you get started, we’ve selected a few node-ios-device examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appcelerator / titanium_mobile / node_modules / ioslib / lib / device.js View on Github external
process.nextTick(function () {
		try {
			logOff = iosDevice.log(udid, function (msg) {
				if (state == PUMPING_LOG) {
					// we create a timer here so that if we haven't received any messages for a
					// half second, then the log must be caught up and we're ready to install
					clearTimeout(timer);
					timer = setTimeout(function () {
						// logs quieted down, go ahead and install
						state = INSTALLING;
						iosDevice.installApp(udid, appPath, function (err) {
							if (err) {
								emitter.emit('error', err);
								trackOff();
								logOff && logOff();
							} else {
								emitter.emit('installed');
							}
							callback(err);
github appcelerator / ioslib / lib / device.js View on Github external
iosDevice.installApp(udid, appPath, function (err) {
			if (err) {
				return handle.emit('error', err);
			}

			handle.emit('installed');

			if (options.logPort) {
				var logHandle = iosDevice
					.log(udid, options.logPort)
					.on('log', function (msg) {
						handle.emit('log', msg);
					})
					.on('app-started', function () {
						handle.emit('app-started');
					})
					.on('app-quit', function () {
						handle.emit('app-quit');
					})
					.on('disconnect', function () {
						handle.emit('disconnect');
					})
					.on('error', function (err) {
						handle.emit('log-error', err);
					});

node-ios-device

Simple library for listing and installing apps on iOS devices

Apache-2.0
Latest version published 17 days ago

Package Health Score

70 / 100
Full package analysis