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脚本
报错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
网友评论