Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-197] iOS Plugin: Changing xcode-select path doesnt retrigger a scan

GitHub Issuen/a
TypeBug
PriorityNone
StatusResolved
ResolutionFixed
Resolution Date2017-11-28T17:55:37.000+0000
Affected Version/sAppc Daemon 1.0.0
Fix Version/sAppc Daemon 1.0.0
Componentsappcd-fswatcher, appcd-plugin-ios
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2017-11-28T13:12:29.000+0000
Updated2017-11-28T17:55:37.000+0000

Description

Description

When calling xcode-select I dont see the xcodeengine rescan occuring, I broke the code out into the below and when running xcode-select a new event is not sent
const msgpack = require('msgpack-lite');
const util = require('util');
const WebSocket = require('ws');

const data = {
	path: '/private/var/db/xcode_select_link'
}

const ws = new WebSocket('ws://127.0.0.1:1732', {
		headers: {
			'User-Agent': __filename
		}
	})
	.on('message', (msg, flags) => {
		console.log(msgpack.decode(msg));
	})
	.on('close', () => console.log('CLOSED'))
	.on('open', () => ws.send(JSON.stringify({ version: '1.0', path: '/appcd/fswatch', data, id: Date.now(), type: 'subscribe' })));

Comments

  1. Ewan Harris 2017-11-28

    I believe this is because we're adding the watcher on the xcode/contents/developer path, and therefore we're not being notified of the change
  2. Ewan Harris 2017-11-28

    [~cbarber] Mind if I kick this one over to you?
  3. Chris Barber 2017-11-28

    [~eharris] Sure, I'm on it.
  4. Ewan Harris 2017-11-28

    https://github.com/appcelerator/appc-daemon/pull/207

JSON Source