I've been tasked with splitting out the model layer of an existing app into a separate framework. I'm trying accomplish this using cocoapods to make a pod which I'll import back into the main app.
The issue I'm having is the app I'm splitting the code out from is a mix of Swift and Objective-c. It's not cleanly split so the Swift code makes use of Objective-c code and the Objective-c code makes use of Swift code.
I'm struggling to understand how to achieve this, or if it's even possible? When you're in a framework the bridging header and the generated *-swift.h don't seem to work the same way. Then pods is another complication on onto.
I've tried to experiment with a simple project here. SPOILER ALERT. It doesn't compile. https://github.com/Megatron1000/TestMixAndMatch
I've tried to find an example of a cocoapod that's setup in the same entangled language way but haven't been able to. Can anyone point me to one I can use as an example?