Mac下终端执行文件出现“Permission Denied”解决方案: 先执行下面这一句 chmod a+x ./文件名 然后再正常执行文件就可以了 例如: chmod a+x ./BuildIOS.sh ./BuildIOS.sh 就可以了