f***@163.com
f***@163.com
  • 发布:2021-04-05 15:55
  • 更新:2023-04-12 18:27
  • 阅读:885

ios 离线app opencv -ObjC 不能编译 不能识别cv::Mat

分类:uni-app

各位大佬,我使用opencv 实现了一个图片处理的view,单独一个项目不设置 other linker flags,编译运行都没有问题。与uniapp-ios离线打包的库集成出现了如下两种问题:

1、不设置other linker flags : 运行到手机直接报=>
+[WKWebView exchHookMethods]: unrecognized selector sent to class .....
这里官方文档也说明必须使用other linker flags 为-ObjC 才行 见https://ask.dcloud.net.cn/article/83

2、设置other linker flags : -ObjC 没有办法编译

 Undefined symbols for architecture arm64:  
      "cv::Mat::Mat()", referenced from:  
 .........  
        "cv::Mat::~Mat()", referenced from:  
 .........  

问题如上 请各位帮忙

2021-04-05 15:55 负责人:无 分享
已邀请:
renevy

renevy

你好, 解决没?

l***@sina.com

l***@sina.com - 学海无涯

+[WKWebView exchHookMethods]: unrecognized selector

这个怎么解决呢?

要回复问题请先登录注册