LLVM Profile Error: Failed to write file : Filename not set

Hello everyone,

I'm running some tests and after upgrading my Xcode from 12.5 to 13.2.1, I can't run them anymore.

It shows me "Testing..." and after waiting 10 minutes it fails and this output is presented in the console:

LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set
LLVM Profile Error: Failed to write file : Filename not set

I'm using an iPhone 11 Simulator (version 13.2) running iOS 15.2

Any ideas?

Replies

For me this was caused by a dependency (Texture) having an issue with the iOS 15 simulator. The issue is documented here: https://github.com/TextureGroup/Texture/issues/2029

A recent comment claims the issue is fixed in the main branch, but others disagree. If updating the framework version doesn't help, one workaround is to use iOS 14 simulators. There are other workarounds in the comment thread.

Our ultimate solution was to remove Texture from our codebase, which we were already working towards for other reasons.