Multiple issues:
- The script fails to enter the jail because /bin/sh is missing.
- Running
/bin/bash inside the jail results in missing library errors.
- The required library depends on a lot of extra libraries.
This project seems to be inactive. If anyone here wants to create a macOS jail, have a look at my project. The main difference is the utilities are by GNU and they are compiled by the script instead of copying them from the system, thus they are up to date, while macOS comes with old BSD versions of these utilities.