Fix metadata.rb.
Add Xcode installation support for Mac platforms.