/Fabric.framework/run: Permission denied

泪湿孤枕 提交于 2019-11-30 05:18:43

I faced this issue when I cloned a repo and Fabric binaries were already there (commited by other developer). The solution was to run this commands in project folder and after then the xcode build succeeded:

chmod +x Fabric.framework/run
chmod +x Fabric.framework/uploadDSYM

Permission issue solved with fabric 3.7.1 with cocoa pods:

Installed Fabric with:

pod 'Fabric'

pod 'Crashlytics'

Now import below two headers in "AppDelegate.h" class

  #import <Fabric/Fabric.h>     
  #import <Crashlytics/Crashlytics.h>

Add below line in didFinishLaunchingWithOptions:(NSDictionary *)launchOptions:

[Fabric with:@[[Crashlytics class]]];

Updated shell script with pods root path with fabric key which will generated while installing fabric signup in build Phase as shown below:

and added Api key in plist as shown :

With this integration now Crashlytics shows all the live devices count , App Store crashes with build versions and active users

Reference: https://docs.fabric.io/apple/examples/cannonball/index.html

I faced same issue and fixed this by modifying file permissions by executing following command in terminal:

chmod a+x Path/Library/Developer/Xcode/DerivedData/app-hhrnpfyhpluwgwcdjsjkbeehwwqs/Build/Intermediates/app.build/Debug-iphoneos/app.build/Script-C0EDB4D81B6759AC0067631D.sh
chmod a+x ios_workspace/project/Pods/Fabric/run
chmod a+x ios_workspace/project/Pods/Fabric/uploadDSYM

Note: Update path to uploadDSYM, run and .sh file accordingly

This issue is caused by lack of access permission of the run file in Fabric.framework. You can find two files named run and uploadDSYM in the folder Fabric.framework of your project. Using terminal command below has solved my issue.

chmod 777 run
chmod 777 uploadDSYM

use chmod 777 YOUR_WORKSPACE_PATH

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!