美文网首页
NSTask执行shell脚本

NSTask执行shell脚本

作者: ONE2 | 来源:发表于2021-06-29 11:59 被阅读0次

NSTask执行shell脚本
报错1: Operation not permitted
解决方法:Your target -> Capabilities -> App Sandbox (Turn the switch off)

报错2:Couldn't posix_spawn: error 13
解决办法:
task.launchPath = "/bin/sh"

相关文章

网友评论

      本文标题:NSTask执行shell脚本

      本文链接:https://www.haomeiwen.com/subject/bgvhultx.html