Error archiving openCV App on XCode

Hello there,

In attempt to archive the app on XCode 12.5.1, the following error occurred. Apparently, opencv2 library doesn’t have full bitcode required by XCode for arm64.

Has anyone already got a similar error? How do I generate the required bitcode then?

Best wishes,
I

'''' ld: bitcode bundle could not be generated because '/ios/Pods/libopencv-contrib/opencv2.framework/opencv2(cap_ios_photo_camera.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file '/ios/Pods/libopencv-contrib/opencv2.framework/opencv2' for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)
‘’’’