opencv xcode 9 Undefined symbols for architecture arm64:

asked 2017-12-07 07:03:42 -0500

piowes86 gravatar image

image description

I need to use ximgproc module from OpenCV_contrib into my Xcode project. When I run the project I have an error like above.

Xcode 9.1 (9B55) Target: iOS 11 OpenCV -> OpenCV_Contrib ->

I have connected modules from these two libraries into one opencv2.framework .

xcrun -sdk iphoneos lipo -info ios/opencv2.framework/opencv2 Architectures in the fat file: ios/opencv2.framework/opencv2 are: armv7 armv7s i386 x86_64 arm64

Architestures are fine.

Below Xcode project settings:

image description

I stuck. I was trying everything. (I spent two days for looking for a solution.)

I was trying everything according to: -> I added also extra libraries to the project:

Accelerate AssetsLibrary AVFoundation CoreGraphics CoreImage CoreMedia CoreVideo QuartzCore UIKit Foundation



Has anyone idea how to solve the problem? Thank you in advance for help!

edit retag flag offensive close merge delete


My bad on the previously misleading response. I have no experience with opencv_contrib on iOS. Have you looked at this suggestion?

eshirima gravatar imageeshirima ( 2017-12-07 14:45:43 -0500 )edit