added the script and a sample integration in XCode