interface SampleBridgeJSExport: IJSExport // Fire says Unknown Type
When I ack JSExport in Fire.app/Contents/Resources four results come up but they’re all under iOS 7.1.
Doesn’t seem like the OSX SDK’s have a definition for this interface. Although I do see a reference to JSExport.h in 10.11/JavaScriptCore.fx. Are there any work-arounds for this?
Doing a quick code search for JSExport in the WebKit repo it looks like it’s used in a fair bit of places. At this point in my journey I’m still in the “trying to get the basics working” phase so I’m lacking the experience of using these components well enough to know how all these pieces fit together to make the JavaScriptCore bridge work.
I was trying the same thing with Xamarin and although I got the JSExport functionality working it appears there are some bugs in their JSValue implementation so I didn’t get that far there either. I have managed to get a proof of concept working in Swift and Objective-C though…
as a workaround, can you just declare it as empty interface in your project? assuming you just need to for the ancestry as not to have to manually remove in in dozens of places…
The compile errors are now gone and I’m able to access an instance of NSObject from JavaScript. However the instance does not contain the methods that were defined in the interface and implemented in the class. It’s just a blank object…