[DAEMON-197] iOS Plugin: Changing xcode-select path doesnt retrigger a scan
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2017-11-28T17:55:37.000+0000 |
Affected Version/s | Appc Daemon 1.0.0 |
Fix Version/s | Appc Daemon 1.0.0 |
Components | appcd-fswatcher, appcd-plugin-ios |
Labels | n/a |
Reporter | Ewan Harris |
Assignee | Ewan Harris |
Created | 2017-11-28T13:12:29.000+0000 |
Updated | 2017-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
- 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
- Ewan Harris 2017-11-28 [~cbarber] Mind if I kick this one over to you?
- Chris Barber 2017-11-28 [~eharris] Sure, I'm on it.
- Ewan Harris 2017-11-28 https://github.com/appcelerator/appc-daemon/pull/207