0

I have an app written in Swift called ColorApp which makes calls to ASwiftFramework (a collection of my swift files) as well as AnObjCFramework (an embedded framework of Objective C files). In my top level bridging header I only have: #import AnObjCFramework/AnObjCFramework.h>.

I have an error in a class in AnObjCFramework, and I wrote a fix which I incorporated into a new Swift class. I'd like to call this swift class (yes, it is a subclass of NSObject), from a class in AnObjCFramework. Is that possible?

I understand it is easier to just fix the Objective C code, but I'd like to understand better how to work with mixed libraries.

To summarize:
ColorApp (Swift) --> ASwiftFramework (Swift)--> AnObjCFramework (ObjectiveC)-> (Swift Class)

Mozahler
  • 4,958
  • 6
  • 36
  • 56
  • I didn't make this clear... The SwiftFramework has the ObjectiveCFramework embedded, not the top level app. I dragged the SwiftFramework into the project, the ObjectiveCFramework is added to the project because the ObjectiveCFramework brings it with... And everything works ok - I can call the objective c classes from my non-framework swift code. – Mozahler Nov 17 '15 at 16:36

1 Answers1

0

OK, after searching through the frameworks archives here, I realize I really shouldn't nest frameworks like this.

Mozahler
  • 4,958
  • 6
  • 36
  • 56