Overview

When running nbdev_prepare with nbdev, the following error occurred.

concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

Solution

Running the following command beforehand resolved the error.

exportOBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

Summary

I hope this is helpful for anyone experiencing the same issue.