add build script for mac/ios