“不允许操作"指的是:在Mac App中执行Shell脚本时 [英] "Operation not permitted" when execute shell script in mac app

查看:334
本文介绍了“不允许操作"指的是:在Mac App中执行Shell脚本时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Xcode上开发mac应用程序, 我想执行一些shell脚本,

I'm developing the mac applivation on Xcode, I want to execute some shell script,

cp file ~/Library/.....

它总是显示不允许操作",但是我确定它可以在终端上执行.

It always show "Operation not permitted",but I'm sure that it can be execute at terminal.

我正在尝试在Xcode中编辑安装所有者"和安装权限",但是仍然无法使用.

I'm trying to edit the "Install Owner" and "Install Permissions" inside the Xcode, but it still not work.

谢谢

推荐答案

我解决了这个问题,它是由Xcode沙箱模式引起的,在将其关闭后可以正常工作.

I solved this problem, it cause from Xcode sandbox mode, it work after turn off it.

这篇关于“不允许操作"指的是:在Mac App中执行Shell脚本时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆