Hi there! I’m trying to create a simple Unity->VisionOS bridge. I followed different tutorials on Youtube/Medium, and these
solutions work for iOS but don’t work on VisionOS.
Basically, if I put a group of .swift/.mm/.h files right in Unity, I get a compilation error "Could not build Objective-C module UnityFramework"
And if I create these files right in Xcode manually passing the bridging header to the Build Settings, I get a runtime error at "reinterpret_cast<PInvokeFunc>(_PrintMessage)(____0_title_marshaled);"
I have a very limited knowledge on the topic, so cannot figure out if it is a UnityFramework who cannot find the PrintMessage function in headers, or is it a native side who cannot find an implementation of a PrintMessage prototype.
What I want is to send a string to a native Swift side and to do something with that string.
p.s. for some reason I cannot create topics in visionOS category.