tesseract_ocr icon indicating copy to clipboard operation
tesseract_ocr copied to clipboard

SwiftyTesseract/SwiftyTesseract.swift:100: Fatal error: Initialization of SwiftyTesseract has failed.

Open ShivamS1234 opened this issue 2 months ago • 8 comments

Hi Team,

I am getting this issue only with the iOS physical device. either than in android and iOS simulator it's working fine. please help me on that?

container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled -[MLKITx_GIPPseudonymousIDStore initializeStorage]: Shared App Groups unavailable container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled -[MLKITx_GIPPseudonymousIDStore initializeStorage]: Shared App Groups unavailable container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled -[MLKITx_GIPPseudonymousIDStore initializeStorage]: Shared App Groups unavailable container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled -[MLKITx_GIPPseudonymousIDStore initializeStorage]: Shared App Groups unavailable nw_path_necp_check_for_updates Failed to copy updated result (22) flutter: /private/var/mobile/Containers/Data/Application/04EA6E81-E759-42C1-86F9-48661B4EF83D/tmp/IMG_0068-1733835417022.jpeg flutter: FlutterTesseractOcr Tessdata path: /var/mobile/Containers/Data/Application/04EA6E81-E759-42C1-86F9-48661B4EF83D/Documents/tessdata Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “tessdata” in the folder “Demo App”." UserInfo={NSFilePath=/private/var/containers/Bundle/Application/50ADDFAD-8739-4C22-B010-1E6106299D6A/Runner.app/tessdata, NSURL=file:///private/var/containers/Bundle/Application/50ADDFAD-8739-4C22-B010-1E6106299D6A/Runner.app/tessdata, NSUnderlyingError=0x300ee7600 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}} Error opening data file /private/var/containers/Bundle/Application/50ADDFAD-8739-4C22-B010-1E6106299D6A/Runner.app/tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. Failed loading language 'eng' Tesseract couldn't load any languages! SwiftyTesseract/SwiftyTesseract.swift:100: Fatal error: Initialization of SwiftyTesseract has failed. Check that the tessdata folder has been added to the project as a folder reference and contains the correct .traineddata files for the specified engine mode and language(s).

Thanks!

ShivamS1234 avatar Dec 11 '24 05:12 ShivamS1234