fix Mac build scripts
update swift pointer
Merge pull request #682 from LipuFei/fix-mac-build

fix Mac build scripts