Filesystem.cpp:580: error: (-213:The function/feature is not implemented) in function 'exists'

I used the following command to compile OpenCV(version 4.5.2) iOS:

python opencv/platforms/ios/build_framework.py ios --contrib opencv_contrib --iphoneos_archs arm64 --iphonesimulator_archs x86_64

I put prototxt file and caffemodel file in document directory, then i used WeChatQRCode to decode the QR code. The code WeChatQRCode(detector_prototxt_path, detector_caffe_model_path) produced the following error message:

filesystem.cpp:580: error: (-213:The function/feature is not implemented)  in function 'exists'

i think it is this problem and you have to rebuild (from cmake) using

OPENCV_HAVE_FILESYSTEM_SUPPORT=1