Reputation: 2215
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.
I'm trying to edit the "Install Owner" and "Install Permissions" inside the Xcode, but it still not work.
Thanks
Upvotes: 12
Views: 8646
Reputation: 2215
I solved this problem, it cause from Xcode sandbox mode, it work after turn off it.
Note, nowadays this is done in Build Settings:
Upvotes: 7
Reputation: 789
For me I had to go to Build Settings -> User Script Sandboxing -> false
Enable App Sandboxing is a different setting and was already set to false but has no impact on Run Scripts.
Upvotes: 22
Reputation: 681
To turn off sandboxing
go to
Your target
-> Capabilities
-> App Sandbox
(Turn the switch off)
Upvotes: 14