I am a native mobile application developer primarily iOS platform. I am more accustomed to MAC rather than Windows. I would prefer using Mac version of Mendix Pro rather than running using Windows VM on parallel. but I am having issue with native package when running Project. below are the logs from native_packageer_log.txt: [Error] node:events:497[Error] throw er; // Unhandled 'error' event[Error] ^ [Error] Error: EMFILE: too many open files, watch[Error] at FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)[Error] Emitted 'error' event on NodeWatcher instance at:[Error] at FSWatcher._checkedEmitError (/Applications/Studio Pro 10.18.3.58900-Beta.app/Contents/modeler/tools/node/node_modules/metro-file-map/src/watchers/NodeWatcher.js:82:12)[Error] at FSWatcher.emit (node:events:519:28)[Error] at FSWatcher._handle.onchange (node:internal/fs/watchers:213:12) {[Error] errno: -24,[Error] syscall: 'watch',[Error] code: 'EMFILE',[Error] filename: null[Error] I have tried 1. sudo launchctl limit maxfiles 1048576 1048576 ulimit -n 1048576 2. Running external metro and then run project , Mendix always invoke it's internal metro. 3. adding .watchmanconfig with { "ignore_dirs": ["vendorlib", "vendorlib_old", "themesource", "resources", "emailtemplates", "mlsource", "build-log.txt", "data-snapshot*"]} 4. .metroignore with build-log.txt deployment/ vendorlib/ vendorlib_old/ resources/ data-snapshot* themesource/ mlsource/
asked
Muhammad Siddiqui
1 answers
0
I think file watcher hits a limit for open file descriptors. Can you chech the current limits with following commands?
ulimit -n
launchctl limit maxfiles
Afterwards you can try to increase limits as follows: