SwiftUI: Vision Resource initialization failed

Hello,

I want to use Vision for text recognition. However as soon as I fire my VNRecognizeTextRequest I get the following error on my device

Resource initialization failed: could not open file /System/Library/LinguisticData/RequiredAssets_en.bundle/AssetData/en.lm/variants.dat

I have actually no clue where this error is coming from and how to fix it since it seems some files are missing?

I tested this on two different 13.5 phones, both gave me the same result.

Below is my code:
Code Block swift
let textRecognitionRequest = VNRecognizeTextRequest { (request, error) in
guard let observations = request.results as? [VNRecognizedTextObservation] else {
print("The observations are of an unexpected type.")
return
}
let maximumCandidates = 1
for observation in observations {
guard let candidate = observation.topCandidates(maximumCandidates).first else { continue }
tmp += candidate.string + "\n"
}
print("hello 2")
}