Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LLVM Profile Error: Failed to write file "default.profraw": Permission denied

Tags:

xcode

llvm

I'm getting the error LLVM Profile Error: Failed to write file "default.profraw": Permission denied after running unit tests in Xcode. I don't know where Xcode is trying to write this file to.

What folder should I grant permissions for?

like image 754
Cloud9999Strife Avatar asked Nov 07 '17 10:11

Cloud9999Strife


4 Answers

Had this warning when I forgot to enable code coverage:

enter image description here

like image 94
kasyanov-ms Avatar answered Nov 09 '22 17:11

kasyanov-ms


Xcode 10+

Enable Code Coverage for Test scheme.

enter image description here

like image 45
muhasturk Avatar answered Nov 09 '22 15:11

muhasturk


Cleaning my build folder eliminated the error for me. (Option-Shift-Command K.) I'm using Xcode Version 9.2 (9C40b). The error started when I added a set of images to my Assets.xcassets. After a full clean the error is gone.

like image 2
John Pavley Avatar answered Nov 09 '22 17:11

John Pavley


This may not be helpful to anyone else, but I was hitting this when I had placed a exit(EXIT_FAILURE) in my code while refactoring a piece of code. I had assumed putting it in would crash the app right there and show me that it crashed there, but instead it was giving me this error and not showing where it had crashed.

like image 2
EndersJeesh Avatar answered Nov 09 '22 16:11

EndersJeesh