gali8 / Tesseract-OCR-iOS

Tesseract OCR iOS is a Framework for iOS7+, compiled also for armv7s and arm64.
http://www.nexor.it
MIT License
4.22k stars 949 forks source link

copyFilesFromResources set true, permission denied #382

Open hongmun opened 6 years ago

hongmun commented 6 years ago

Hi, I've been trying to copy the tessdata file from the application bundle into the Cached folder of my application by setting

let tesseract: G8Tesseract = G8Tesseract(language: "eng", configDictionary: nil, configFileNames: nil, absoluteDataPath: "data/trained", engineMode: G8OCREngineMode.tesseractCubeCombined, copyFilesFromResources: true)

but it shows the error below

I've searched around and some says its about you can't write data during running time to the Cache folder. Appreciate if there's any answer. Thank you