LegoCV icon indicating copy to clipboard operation
LegoCV copied to clipboard

Where is the bridging header?

Open mahdidham opened this issue 6 years ago • 3 comments

it's weird but how to connect objc to swift wothout bridging header? Any clue?

mahdidham avatar Mar 27 '18 02:03 mahdidham

what do you mean without header? it's not possible without .h file

to call objc functions from swift you need .h and .mm files..

anonym24 avatar Mar 30 '18 14:03 anonym24

I mean there is no header file (objective-c Bridging header) to mix both swift and obcj. see Mix and Match Documentation

mahdidham avatar Mar 30 '18 21:03 mahdidham

this project will not work anyway, try to google different (how to connect opencv), and you have to use opencv functions in objective-c class, those swift wrappers won't work anyway, so you can write opencv code in c++ using .mm class (ojective-c++) and using header to call functions from swift

anonym24 avatar Mar 30 '18 22:03 anonym24