Use ditto to avoid following symlinks when copying the framework into place. Fixes #5818.
Also renamed as many references to OS X as possible to macOS in documentation.