Fixed permissions of build script
Specified iPhone Simulator as SDK to prevent Travis CI from failing