fix build.sh for 64 bit iOS Simulator

Hi
It seemed not work on 64 bit iOS Simulator, so I fix build.sh and now work fine.
Please check and review.