I have an ObjC project and I've added a WatchApp Extension target in Swift. It works fine, however I have a database handler class that I wanted to make accessible from the watch extension target in order to get some data from it. I've added the database class in the Bridging Header file in the extension target but when I instantiate the class in the app viewController I get an error of missing symbol. I've trying adding the path to the class in the Header Search Path but it still doesn't work. Does anyone have any idea of what I'm missing?
You need to add the class to your WatchKit extension target. Alternately, you can build a framework with your shared code.
Edit
See this for more info Calling a Method on Watchkit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With