no such module in import on Xcode with cocoapod OpenCV2

asked 2020-09-23 07:41:59 -0600

Bluesailor gravatar image

after successfully installed cocoapod 'OpenCV2', set the $(inherited) flag in Xcode Target settings then 'pod update' and opened the project.xcworkspace, the import 'OpenCV2' statement in Xcode resulted in no such module 'OpenCV2'. Xcode Project Navigator is listing 'OpenCV2' under Pods. I am able to import additional installed cocoa pods (e.g. 'SwiftyZeroMQ5'. The 'no such module error for OpenCV2 is also occurring when I install only OpenCV2 cocoapod.

Xcode Version: 11.7 MacOs: 10.15.6

Please Help. Thanks a lot.

edit retag flag offensive close merge delete

Comments

which opencv version is it ? (probably only the latest master branch has swift bindings)

berak gravatar imageberak ( 2020-09-23 07:59:08 -0600 )edit

it's OpenCV2 4.3! In pod file: " pod 'OpenCV2', '~>4.3' " ! When I change in pod file to " pod 'OpenCV2', '~> 4.4' " this message is output when I "pod update" : [!] CocoaPods could not find compatible versions for pod "OpenCV2": In Podfile: OpenCV2 (~> 4.4)

Bluesailor gravatar imageBluesailor ( 2020-09-24 02:32:58 -0600 )edit