You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error when trying to build or run in Windsurf:
dyld[31692]: terminating because inserted dylib '/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/setvbuf_universal.so' could not be loaded: tried: '/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/setvbuf_universal.so' (code signature in <48DD5F7D-C033-3518-BB8A-E08766ECCC43> '/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/setvbuf_universal.so' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/setvbuf_universal.so' (no such file), '/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/setvbuf_universal.so' (code signature in <48DD5F7D-C033-3518-BB8A-E08766ECCC43> '/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/setvbuf_universal.so' not valid for use in process: library load disallowed by system policy)
dyld[31692]: tried: '/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/setvbuf_universal.so' (code signature in <48DD5F7D-C033-3518-BB8A-E08766ECCC43> '/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/setvbuf_universal.so' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/setvbuf_universal.so' (no such file), '/Users/REDACTED/.windsurf/extensions/sweetpad.sweetpad-0.1.42/out/set
The highlight being:
setvbuf_universal.so' not valid for use in process: library load disallowed by system policy
I also get a "Apple could not verify
"setvbuf_universal.so" is free of malware that may harm your Mac or compromise your privacy." alert with two buttons "Done" and "Move to Bin"
The Settings app shows setvbuf_universal.so under the Privacy section but the Allow button doesn't work.
The text was updated successfully, but these errors were encountered:
Oh, thanks for raising the issue about it. The problem is that command-line tools like xcbeautify work differently in different environments. In non-TTY environments, like Node.js, stdout is buffered instead of being flushed after each line, as it is in TTY environments. Here is a brief article about that: https://jvns.ca/blog/2024/11/29/why-pipes-get-stuck-buffering/
In my case, I was too naïve to think I could insert my own setvbuf_universal.so as a dynamic library for xcbeautify to force this tool to flush stdout at the end of each line instead of buffering output.
macOS does not allow such hacks without proper notarization. I hadn't noticed it because when I compile a .so file on my machine, it uses ad-hoc (local) signing, that allow to ignore the notarization process during development.
A simple solution for now is to disable "setvbuf" by default (this will be included in the next release) and then explore other tools to avoid buffering in xcbeautify and similar cases
Getting this error when trying to build or run in Windsurf:
The highlight being:
I also get a "Apple could not verify
"setvbuf_universal.so" is free of malware that may harm your Mac or compromise your privacy." alert with two buttons "Done" and "Move to Bin"
The Settings app shows
setvbuf_universal.so
under the Privacy section but the Allow button doesn't work.The text was updated successfully, but these errors were encountered: