Fixed an error in the build script

Fixed a problem in generating icons for ios