iOS xcode 5 crashlytics error - Shell Script Invocation Error - ./Crashlytics.framework/run: Permission denied

B-Man picture B-Man · Sep 29, 2013 · Viewed 10.8k times · Source

I have Crashlytics Framework added to my project, with a script. Run script: Shell: /bin/sh Script: ./Crashlytics.framework/run KEY_HERE

When I try to run the project, I get the following error:

Shell Script Invocation Error - ./Crashlytics.framework/run: Permission denied

BUT if i delete the framework and add it again, it runs fine... ONCE. Then the next time I get the same error. Then i have to delete it, and re-add it, for it to only run once, and then the same story...

Does anybody have an idea how to fix this? THANKS in advance.

Answer

flo picture flo · Nov 13, 2013

Are you keeping your project and the Crashlytics framework in Dropbox? I've noticed that Dropbox changes/resets the permissions set. Try pausing Dropbox sync and then set the permissions of Crashlytics.framework/run to 755.

UPDATE:
chmod 755 run only worked temporarily for me. As Hemal Shah wrote in his answer, I also had to tell git to make run executable. You can do so by calling git update-index --chmod=+x run and committing that. (via this answer).

After having moved my project and the Crashlytics framework out of Dropbox, and doing this, there were no further issues with it.