Skip to content

Error while building XCFramework #19086

@sivrish

Description

@sivrish
System information (version)
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

@colejd

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions