Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 486
B-Man Avatar asked Sep 29 '13 11:09

B-Man


2 Answers

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.

like image 192
flo Avatar answered Oct 31 '22 01:10

flo


In terminal just navigate to Crashlytics.framework folder if you use Crashlytics, in case you already use Fabric go to Fabric.framework folder. run should be there. And change permissions by running this in terminal: chmod 755 run.

like image 42
averem Avatar answered Oct 31 '22 01:10

averem