Use OpenCV as a SPM package.
Add https://github.com/albusapp/opencv-spm.git
as package dependency in Xcode/SPM package.
- edit
.version
file to set desired version - on push, the Github action
release.yml
will checkout OpenCV, build it, generate axcframework
containing iOS archs (arm64 for device & simulator), updatePackage.swift
and publish a new release.
Import opencv2
and use it as documented in opencv.org.
import opencv2
...