1.查看是否  the filesystem being mounted as noexec
2.The script was being run from inside a .dmg that had the quarantine flag set on it. When the .dmg was mounted, it was mounting it with a quarantine flag that is inherited, but doesn‘t show up. I unmounted the .dmg, removed the quarantine flag, and re-mounted it, and all was well.
一下是网络搜索结果的引用:
本文出自 “净空蓝星” 博客,请务必保留此出处http://jingkonglanxing.blog.51cto.com/1152128/1743755
原文:http://jingkonglanxing.blog.51cto.com/1152128/1743755