Luca's Blog

Latest Post

19 Aug 2021

Why Ansible and Python fork break on macOS High Sierra+ and how to solve

Environment macOS High Sierra+ Issue objc[22868]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. objc[22868]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug. Resolution current session only export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES for all future sessions $ echo "OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES" >> . ...Read More

All Posts