Closed BraveEvidence closed 3 years ago
Hi, I believe your issue is simply that your dependencies are wrong and so the API defined in UnityBridge
isnt visible. Did you set the header to public
?
Yes
I will need a bit more context to help here, but It definitely is a small build issue
@DavidPeicho , I have same problem when trying to use your files in my own project. Your project is working perfect, but when I took UnityBridge.swift and NativeCallProxy-Bridging-Header.h for my project, it now cannot be builded. I'm using same unity sample project and files dependencies are the same in it. My project is just swift, without swiftui.
Hey @dandepeched, you need to set the NativeCallProxy.h as a bridging header. It's an ObjectiveC file, and the swift need some info about that. Please have a look at the Apple documentation
Yes, I was missing path to the NativeCallProxy-Bridging-Header.h in the Build Settings/Objective-С Bridging Header. Now I can build the project. Thanks for your help!
Hi, can you help me with this. I have followed all the steps of integrating unity library recommended in the repo