# Watchdog assets advice

**URL:** <https://discourse.libcinder.org/t/watchdog-assets-advice/680>\
**Category:** CinderBlocks\
**Created:** [May 9, 2017, 10:13am UTC](https://discourse.libcinder.org/t/watchdog-assets-advice/680 "2017-05-09T10:13:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![felixfaire](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/felixfaire/32/168_2.png) [@felixfaire](https://discourse.libcinder.org/u/felixfaire)\
**Post date:** [May 9, 2017, 10:13am UTC](https://discourse.libcinder.org/t/watchdog-assets-advice/680/1 "2017-05-09T10:13:54Z")

</div>

This is probably mostly for @Simon but for some reason I cannot get Watchdog to watch files anymore. This might (likely) be a silly mistake but I cannot work it out so far.

im calling :

```
Watchdog::watch( "glsl.frag", [this](const ci::fs::path&)
{
    mGlsl = gl::GlslProg::create( loadAsset( "thru.vert" ), loadAsset( "glsl.frag" ));
});

```

In `setup()` (also tried `getAssetPath("glsl.frag")`) but the callback never gets triggered when I resave the file. Anyone know what’s going on / what i’m doing wrong? The shader builds fine and I can see the result from build time but it never reloads on change.

OSX, XCode, Debug build

Thanks

---

<div class="post-metadata">

**Author:** ![felixfaire](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/felixfaire/32/168_2.png) [@felixfaire](https://discourse.libcinder.org/u/felixfaire)\
**Post date:** [May 9, 2017, 10:38am UTC](https://discourse.libcinder.org/t/watchdog-assets-advice/680/2 "2017-05-09T10:38:21Z")

</div>

Found it! (basic error as suspected)

When dragging the assets folder into xCode DO NOT tick “Add to targets”. I guess this copies the contents of the folder over at build time, which obviously stops any future changes.

Will leave this here in case anyone else has a similar problem.

Apologies @Simon its working great as usual 😛
