Skip to content

OSX framework: enable testing of Objective-C/Swift bindings #18812

@alalek

Description

@alalek

It would be nice to enable OSX framework testing for OpenCV 4.x through --run_tests from osx/build_framework.py on MacOSX.

It works in PR with:

force_builders=Custom Mac
build_image:Custom Mac=osx_framework-test
buildworker:Custom Mac=macosx-2

Resolved problem

Currently I see this error message:

Testing failed:
	OpenCVTestTests:
		Could not find module 'opencv2' for architecture 'x86_64'; found: x86_64-apple-macos
	Testing cancelled because the build failed.

@komakai Could you please confirm that this flow should work?

Used this configuration of build environment:

$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.14.6
BuildVersion:	18G87

$ clang --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ swiftc --version
Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)
Target: x86_64-apple-darwin18.7.0

$ cmake --version
cmake version 3.15.2

MACOSX_DEPLOYMENT_TARGET = 10.12  (default from OpenCV's packaging scripts)

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