Adapted the iOS SDK deployment script for the macOS SDK.
Also renamed as many references to OS X as possible to macOS in documentation.