# \#ios

**URL:** https://forum.opencv.org/tag/ios/205.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [Is my iOS build likely failing at this part due to linking Homebrew libraries?](https://forum.opencv.org/t/is-my-ios-build-likely-failing-at-this-part-due-to-linking-homebrew-libraries/24240)

<div class="topic-metadata">

**Author:** [@Daniel\_Vonrhein](https://forum.opencv.org/u/Daniel_Vonrhein)\
**Replies:** 0\
**Last updated:** [December 8, 2025, 8:10am UTC](https://forum.opencv.org/t/is-my-ios-build-likely-failing-at-this-part-due-to-linking-homebrew-libraries/24240 "2025-12-08T08:10:39Z")

</div>

On Mac OS 26.1, I am trying my best to get iOS Pack running, with the opencv\_contrib libraries added on. But I would like some advice regarding my configuration. I believe that my build script is failing after configura…

---

## [MatToUIImage problem after Rotate Image from MAT](https://forum.opencv.org/t/mattouiimage-problem-after-rotate-image-from-mat/14973)

<div class="topic-metadata">

**Author:** [@tangtuongco](https://forum.opencv.org/u/tangtuongco)\
**Replies:** 5\
**Last updated:** [January 29, 2024, 10:05am UTC](https://forum.opencv.org/t/mattouiimage-problem-after-rotate-image-from-mat/14973 "2024-01-29T10:05:32Z")

</div>

I have the following code running in iOS, using for convert UIImage To MAT. After that, rotate the image by OpenCV and convert it back to UIImage. But after use in iOS 17, this code is bug (return nil image from functi…

---

## [Getting OpenCV ObjectiveC++ errors while converting our swift app into Framework](https://forum.opencv.org/t/getting-opencv-objectivec-errors-while-converting-our-swift-app-into-framework/7303)

<div class="topic-metadata">

**Author:** [@Keshav](https://forum.opencv.org/u/Keshav)\
**Replies:** 0\
**Last updated:** [January 27, 2022, 5:50am UTC](https://forum.opencv.org/t/getting-opencv-objectivec-errors-while-converting-our-swift-app-into-framework/7303 "2022-01-27T05:50:20Z")

</div>

We are trying to convert our Swift app into framework, In our app we are using OpenCV library. So far we have resolved many compiler errors. Now we are stuck in resolving below OpenCV Objective C++ compiler error. /User…

---

## [Not able to access mat.at(row: 1, col: 2)](https://forum.opencv.org/t/not-able-to-access-mat-at-row-1-col-2/11394)

<div class="topic-metadata">

**Author:** [@rahullokhande20](https://forum.opencv.org/u/rahullokhande20)\
**Replies:** 2\
**Last updated:** [December 23, 2022, 7:53am UTC](https://forum.opencv.org/t/not-able-to-access-mat-at-row-1-col-2/11394 "2022-12-23T07:53:09Z")

</div>

Hello Team, I am using opencv (version 4.6.0)in iOS Project. but while executing let abc = mat.at(row: 1, col: 2) I am getting 'Generic parameter 'N' could not be inferred' error If I use let abc = mat.at\<Float\>(ro…

---

## [Reduce Opencv framework size on iOS](https://forum.opencv.org/t/reduce-opencv-framework-size-on-ios/9471)

<div class="topic-metadata">

**Author:** [@yosifz8](https://forum.opencv.org/u/yosifz8)\
**Replies:** 0\
**Last updated:** [July 11, 2022, 11:01am UTC](https://forum.opencv.org/t/reduce-opencv-framework-size-on-ios/9471 "2022-07-11T11:01:43Z")

</div>

I want to use OpenCV on an SDK I developing. The main usage is to use it to resize UIImage, and this is the code I’m using for that(everything works fine): #import \<opencv2/opencv.hpp\> #include \<opencv2/imgcodecs/ios.h\> …

---

## [Can't build iOS app for simulator on m1 computer](https://forum.opencv.org/t/cant-build-ios-app-for-simulator-on-m1-computer/8585)

<div class="topic-metadata">

**Author:** [@johannwerner](https://forum.opencv.org/u/johannwerner)\
**Replies:** 1\
**Last updated:** [May 16, 2022, 9:27am UTC](https://forum.opencv.org/t/cant-build-ios-app-for-simulator-on-m1-computer/8585 "2022-05-16T09:27:08Z")

</div>

Hi I added the ios framework to a brand new project, and when I ran the up I got the error could not find module ‘opencv2’ for target ‘arm64-apple-ios-simulator’; found: x86\_64-apple-ios-simulator, armv7s, armv7s-apple…

---

## [OpenCV 4.x+ requires enabled C++11 support in Xcode 13.2](https://forum.opencv.org/t/opencv-4-x-requires-enabled-c-11-support-in-xcode-13-2/8533)

<div class="topic-metadata">

**Author:** [@Sajal\_Gupta](https://forum.opencv.org/u/Sajal_Gupta)\
**Replies:** 1\
**Last updated:** [April 25, 2022, 10:22am UTC](https://forum.opencv.org/t/opencv-4-x-requires-enabled-c-11-support-in-xcode-13-2/8533 "2022-04-25T10:22:27Z")

</div>

I am trying integrating OpenCV - 4.5.3 in my cocoapod project and when I build project I am getting following errors in cvdef.h file. “OpenCV 4.x+ requires enabled C++11 support” ‘array’ file not found

---

## [How to convert CMSampleBuffer to Mat in iOS and Swift](https://forum.opencv.org/t/how-to-convert-cmsamplebuffer-to-mat-in-ios-and-swift/8395)

<div class="topic-metadata">

**Author:** [@Sajal\_Gupta](https://forum.opencv.org/u/Sajal_Gupta)\
**Replies:** 0\
**Last updated:** [April 14, 2022, 5:35am UTC](https://forum.opencv.org/t/how-to-convert-cmsamplebuffer-to-mat-in-ios-and-swift/8395 "2022-04-14T05:35:43Z")

</div>

I am writing an iPhone app that does some sort of real-time image detection with OpenCV. What is the best way to convert a CMSampleBuffer image from the camera (I’m using AVCaptureVideoDataOutputSampleBufferDelegate of A…

---

## [Reading EXR images on iOS](https://forum.opencv.org/t/reading-exr-images-on-ios/7878)

<div class="topic-metadata">

**Author:** [@tintifax](https://forum.opencv.org/u/tintifax)\
**Replies:** 0\
**Last updated:** [March 10, 2022, 10:35am UTC](https://forum.opencv.org/t/reading-exr-images-on-ios/7878 "2022-03-10T10:35:56Z")

</div>

When using the prebuilt iOS release of OpenCV 4.5.5, I can’t load EXR images using cv::imdecode(). Can somebody help me on how to get EXR decoding to work on iOS? Looking at CMakeLists.txt I saw that WITH\_OPENEXR seems …

---

## [Imshow not working on iOS Chrome/Safari in opencv.js](https://forum.opencv.org/t/imshow-not-working-on-ios-chrome-safari-in-opencv-js/6317)

<div class="topic-metadata">

**Author:** [@Ollie\_Graham](https://forum.opencv.org/u/Ollie_Graham)\
**Replies:** 1\
**Last updated:** [November 23, 2021, 1:29pm UTC](https://forum.opencv.org/t/imshow-not-working-on-ios-chrome-safari-in-opencv-js/6317 "2021-11-23T13:29:47Z")

</div>

I have a website that grabs frames from a user’s webcam via an HTML \<video\> element, copies them to a \<canvas\> element, and displays the canvas element using opencv.js cv.imshow(). The frame is also copied to an off-scre…

---

## [Error archiving openCV App on XCode](https://forum.opencv.org/t/error-archiving-opencv-app-on-xcode/6373)

<div class="topic-metadata">

**Author:** [@iuri](https://forum.opencv.org/u/iuri)\
**Replies:** 0\
**Last updated:** [November 22, 2021, 8:02pm UTC](https://forum.opencv.org/t/error-archiving-opencv-app-on-xcode/6373 "2021-11-22T20:02:22Z")

</div>

Hello there, In attempt to archive the app on XCode 12.5.1, the following error occurred. Apparently, opencv2 library doesn’t have full bitcode required by XCode for arm64. Has anyone already got a similar error? How d…

---

## [Why carotene is not enabled for iOS](https://forum.opencv.org/t/why-carotene-is-not-enabled-for-ios/6252)

<div class="topic-metadata">

**Author:** [@Mingchang\_Zhao](https://forum.opencv.org/u/Mingchang_Zhao)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 6:09am UTC](https://forum.opencv.org/t/why-carotene-is-not-enabled-for-ios/6252 "2021-11-17T06:09:25Z")

</div>

In CMakeLists.txt: OCV\_OPTION(WITH\_CAROTENE “Use NVidia carotene acceleration library for ARM platform” ON VISIBLE\_IF (ARM OR AARCH64) AND NOT IOS) I want to accelerate OpenCV using carotene on iOS devices. But it see…

---

## [OpenCV IOS Testflight upload](https://forum.opencv.org/t/opencv-ios-testflight-upload/3348)

<div class="topic-metadata">

**Author:** [@Kim\_Henneken](https://forum.opencv.org/u/Kim_Henneken)\
**Replies:** 2\
**Last updated:** [May 16, 2021, 10:51pm UTC](https://forum.opencv.org/t/opencv-ios-testflight-upload/3348 "2021-05-16T22:51:27Z")

</div>

Hi, I’ve been try to using OpenCV for quite some time now. Submitting builds to App Store Maybe due to Xcode 12? The iOS app builds and runs correctly on device, but if I try uploading to App Store connect I get a whol…

---

## [iOS App and OpenCV License (Legal)](https://forum.opencv.org/t/ios-app-and-opencv-license-legal/3303)

<div class="topic-metadata">

**Author:** [@frapl](https://forum.opencv.org/u/frapl)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 6:05pm UTC](https://forum.opencv.org/t/ios-app-and-opencv-license-legal/3303 "2021-05-12T18:05:03Z")

</div>

Hello, I have built a commercial iOS app using OpenCV. However I could not understand if I have to include the license in the app or not. Is it enough if I include the license in my code or do I have to make some sort …

---

## [How to compile or download opencv2.xcframework for iOS & Mac linking?](https://forum.opencv.org/t/how-to-compile-or-download-opencv2-xcframework-for-ios-mac-linking/2794)

<div class="topic-metadata">

**Author:** [@VTPete](https://forum.opencv.org/u/VTPete)\
**Replies:** 0\
**Last updated:** [April 16, 2021, 12:23pm UTC](https://forum.opencv.org/t/how-to-compile-or-download-opencv2-xcframework-for-ios-mac-linking/2794 "2021-04-16T12:23:47Z")

</div>

Hi all, I have a released iPhone/iPad app that uses opencv2.framework without any problems. It would be great to be able to compile it for MacOS, so I tried to do so. XCode promptly told me, “Building for Mac Catalyst…
