-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Error while building XCFramework #19086
Description
System information (version)
- OpenCV => Master branch commit fce8d8e0909bb0dc3ea62d58e093dc78412eef38
- Operating System / Platform => macOS Catalina 10.15.7
- Compiler => Python
Detailed description
I tried the script to build xcframework but it's adding an extra --without argument while running the script I think which results in an error.
Command I tried -
python opencv/platforms/apple/build_xcframework.py --without video --disable-bitcode --iphoneos_archs arm64 --iphonesimulator_archs arm64 --macos_archs arm64 --catalyst_archs arm64 opencv_xcframework
Error -
build_framework.py: error: argument --without: expected one argument
ERROR: Command '['python3', '/Users/sivrish-5137/Downloads/opencv/platforms/ios/build_framework.py', '--iphoneos_archs', 'arm64', '--framework_name', 'opencv2', '--build_only_specified_archs', './video/iphoneos', '--without', '--disable-bitcode', 'xcframework']' returned non-zero exit status 2.
The same args work on ios/build_framework.py
python opencv/platforms/ios/build_framework.py --without video --disable-bitcode --iphonesimulator_archs x86_64 --iphoneos_archs arm64 --build_only_specified_archs opencv_framework
Steps to reproduce
Please try to execute the following command
python opencv/platforms/apple/build_xcframework.py --without video --disable-bitcode --iphoneos_archs arm64 --iphonesimulator_archs arm64 --macos_archs arm64 --catalyst_archs arm64 opencv_xcframework
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues,
answers.opencv.org, Stack Overflow, etc and have not found solution - I updated to latest OpenCV version and the issue is still there
- There is reproducer code and related data files: videos, images, onnx, etc