简体   繁体   中英

adding opencv framework in Xcode 7 , getting issue framework not found opencv2

I am using opencv2 framework in iOS . i have build the opnecv framework using terminal and got opencv2.framework in my directory. now from Xcode i am adding the framework using addonther framework in Xcode . and framework added like this在此处输入图片说明

and

in project navigation

在此处输入图片说明

and this is my search path

ld: framework not found opencv2 在此处输入图片说明

ld: framework not found opencv2 clang: error: linker command failed with exit code 1 (use -v to see invocation)

what is issue here . what is missing i am unable to find

I was facing same issue when i am trying to add the opencv framework using addother framework in Xcode. And I had solved it by copying framework file into source code folder and then add it from that place.

My App folder screenshot URL: https://s31.postimg.org/99772tycb/Sceenshot.png . Hope it will help you.

只需从您的项目目录中删除 opencv2 框架并再次添加它。

我在 xcode 11.3 和 openCV 版本 4.1.1 上遇到了同样的问题,通过在项目中添加新版本的烤箱 CV 4.1.2 框架来解决它。

Maybe I'm a bit late. But this can help someone. If removing and re-adding the framework does not work. Go to Build Settings-> Search Paths -> under Framework search paths: Remove "Any Architecture | Any SDK".

在此处输入图片说明

Unfortunately I can't comment yet, but post from George Khouri guided me into the right direction. Thanks BUT instead of deleting this entry, I double clicked on the Debug path and added another one where opencv-framework actually was. After that I could built successfully. Note: previously it worked like a charm without that but after going to XCODE 13.2.1 it was messed up!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM