[SOLVED] Livereload goes into a loop

Recently I formatted my mac and installed el capitan. After new installation whenever I do:

ionic run ios -l

the livereload goes into a loop and continuously keeps reloading even when there is no change in the files. It picks any file randomly from www folder and keeps logging that the file has changed.

As a result I am not able to use it any more. Following is the information:

Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.0.1
Ionic CLI Version: 1.7.9
Ionic App Lib Version: 0.6.4
ios-deploy version: 1.8.3
ios-sim version: 5.0.4
OS: Mac OS X El Capitan
Node Version: v0.12.7
Xcode version: Xcode 7.2 Build version 7C68

Solved it. The files were in a removeable media and mac was updating the folder with hidden files.

Moved the folder to the HDD and it is now working as intended.