crash while exectuing __llvm_profile_write_file() in Xcode26.0

I am developing an iOS in-app SDK for collecting code coverage data. The SDK writes coverage data to a specified file by calling __llvm_profile_set_filename and __llvm_profile_write_file. This implementation worked correctly until I switched to Xcode 26.0 to build my project. Now, when __llvm_profile_write_file() is executed, it crashes with the following error stack. Can anyone provide any assistance?

Exception Type:    EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000001
Exception Codes:   0x0000000000000001, 0x0000000000000001
Termination Reason:  Namespace SIGNAL, Code 11, Segmentation fault: 11
Terminating Process: exc handler [454]


Thread 96 name:   Dispatch queue: com.test-coverage.processing
Thread 96: Crashed:
0   Demo                           0x122602ea8 initializeValueProfRuntimeRecord (in Demo) (InstrProfilingValue.c:351)
1   Demo                           0x00000001226064c0 writeOneValueProfData (in Demo) (InstrProfilingWriter.c:153)
2   Demo                           0x0000000122606308 writeValueProfData (in Demo) (InstrProfilingWriter.c:234)
3   Demo                           0x00000001226060d0 lprofWriteDataImpl (in Demo) (InstrProfilingWriter.c:401)
4   Demo                           0x0000000122605d98 lprofWriteData (in Demo) (InstrProfilingWriter.c:261)
5   Demo                           0x0000000122604804 writeFile (in Demo) (InstrProfilingFile.c:536)
6   Demo                 	         0x122604664 __llvm_profile_write_file_alias + 228
7   Demo                           0x000000011c6dd108 -[BDTestCoverage p_dumpMainCoverageInfoWithCustomKey:] (in Demo) (TestCoverage.m:995)
8   Demo                           0x000000011c6dcef8 -[BDTestCoverage p_dumpAllCoverageProfileWithCustomKey:] (in Demo) (TestCoverage.m:970)
crash while exectuing __llvm_profile_write_file() in Xcode26.0
 
 
Q