iOS xcode 5 crashlytics错误 - Shell脚本调用错误 - ./Crashlytics.framework/run:权限被拒绝 [英] iOS xcode 5 crashlytics error - Shell Script Invocation Error - ./Crashlytics.framework/run: Permission denied
问题描述
我将Crashlytics Framework添加到我的项目中,并附带一个脚本。
运行脚本:
Shell:/ bin / sh
脚本:./ Crashlytics.framework / run KEY_HERE
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脚本调用错误 - ./Crashlytics.framework/run:权限被拒绝
Shell Script Invocation Error - ./Crashlytics.framework/run: Permission denied
但如果我删除框架并再次添加它,它运行正常... ONCE。然后下次我得到同样的错误。然后我必须删除它,并重新添加它,因为它只运行一次,然后相同的故事......
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.
推荐答案
您是否将项目和Crashlytics框架保留在Dropbox中?我注意到Dropbox更改/重置了权限集。
尝试暂停Dropbox同步,然后将 Crashlytics.framework / run
的权限设置为755.
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.
更新:
chmod 755运行
仅对我暂时有效。
正如Hemal Shah在他的回答中所写,我还必须告诉git使运行
可执行文件。您可以通过调用 git update-index --chmod = + x run
并提交它来实现。 (通过此答案)。
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).
移动项目后和Dropbox的Crashlytics框架一样,这样做没有进一步的问题。
After having moved my project and the Crashlytics framework out of Dropbox, and doing this, there were no further issues with it.
这篇关于iOS xcode 5 crashlytics错误 - Shell脚本调用错误 - ./Crashlytics.framework/run:权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!