fixed build script for swift