skip to Main Content
Sandbox: bash(13945) deny(1) file-read-data /myAppProjectPath/ios/.xcode.env (in target 'myapp' from project 'myapp')
/Path/Library/Developer/Xcode/DerivedData/Emotion-acmdlvvlqstlgranaydxcxmpemsf/Build/Intermediates.noindex/Emotion.build/Debug-iphonesimulator/Emotion.build/Script-FD10A7F022414F080027D42C.sh: line 3: /myAppProjectPath/ios/Pods/../.xcode.env: Operation not permitted

Error when building an app on xcode. Can anyone help?

2

Answers


  1. I had this happen after I let Xcode update the project to "recommended settings." That failed with a merge error, likely leaving the project file in a bad state. Note that in the build output window it should specify an error. The fix for me was to revert the Xcode project file (via Git), clean the project build folder, and rebuild.

    Login or Signup to reply.
  2. Go to your project’s target -> "Build Settings" tab -> "Build Options" section and select "No" to "User Script Sandboxing"

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search