feat: add PrivacyInfo file to iOS framework#25405
Conversation
686d479 to
079e615
Compare
|
@komakai could you take a look? |
The changes look good. |
I can see a few places in the code where stat is used to check for file existence. If just checking for file existence access( ... , R_OK) should work and not require a privacy info manifest entry |
|
@komakai Thanks a lot for the investigation. Feel free submit a patch with stat->access replacement, if it's applicable everywhere. |
|
@asmorkalov alas its not so simple - cv::utils::fs::isDirectory also calls stat - there is no simple alternative in C/C++. You could call [NSFileManager fileExistsAtPath:isDirectory:] from Objective-C but it requires a bit of work to call out to Obejctive-C from C++ |
|
Ok, let's stay it as is for now. |
closes #24951
Testing:
PrivacyInfo.xcprivacyis included to framework resources.Expected iOS framework structure:

Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.