I've been struggling to build an XCFramework of #opencv2, and I finally managed to put one together. Here's what I did:
https://gist.github.com/humblehacker/6a2e38072b0e237de20ba6d1f2efc80f
And here's my question in the related OpenCV GitHub Issue: https://github.com/opencv/opencv/issues/22784#issuecomment-1364446187




