no such module in import on Xcode with cocoapod OpenCV2
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.
which opencv version is it ? (probably only the latest master branch has swift bindings)
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)