Search code examples
swiftxcodeios-frameworks

Imported framework doesn't find framework supposed to be inside it


I have my own Cocoa Touch Framework, it has a imported framework linked to work properly

As shown on the image below when I try to import my framework to an app project, I get the error:

Missing required module 'X'

Even when the referred 'X' (module/framework) is copied together.

I tried:

  • Copy file on build phases
  • Set frameworks Search Paths

And many other ways and it never find the module inside it self.

framework


Solution

  • To import both frameworks, add both those frameworks to :

    • General -> Frameworks, Libraries & Embedded Content : Add framework and choose Embed & Sign.

    • Build Phases -> Link Binary with Libraries

    • Build Phases -> Copy Files