Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个调用 shell 命令的越狱 iphone 应用程序。要读取输出,我将命令的输出重定向到文件。这就是我的问题所在。当我尝试执行重定向时,sh 报告该操作是不允许的。这是 gdb 的确切输出:sh: ./tmp/tmp.out: Operation not permitted另外我使用 system() 函数调用我的命令。先感谢您
sh: ./tmp/tmp.out: Operation not permitted
您可能想要使用为这些事情构建的NSTask 。