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?
Had this warning when I forgot to enable code coverage:
Xcode 10+
Enable Code Coverage for Test scheme.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With