Can't find the headers for embedded Objective-C inside a Swift framework

Hi, I am trying to make a Swift framework that has an objective c framework embedded inside it. Later this swift framework will be added to another framework that in turn will be used in an app.

However, I'm getting problem with the first step; I can't seem to embed an objective c framework in a Swift framework. I can do this in a swift app and bridge them however when I add the objective c framework to the swift framework it isn't able to locate the headers even if I add them in search paths. I can use absolute paths I don't want to since the Swift framework will be added to another swift framework so I don't want to use absolute paths (and again relative paths are not working for header files).

I don't understand when you embed a framework inside another framework you don't have to specify the location of the framework but if I don't specify the relative path to the framework location it doesn't work.

It seems to me the ObjC framework is not being embedded into the Swift framework properly.

Here are the steps I do to embed Objc frameowork:

  1. Make a Swift framework project with XCode
  2. Make a folder named Frameworks
  3. Drag and drop the ObjC framework inside the frameworks folder (I check copy if needed)
  4. I add the header paths that are relative "$(SRCROOT)/UnityLoader/Frameworks/UnityFramework.framework/Headers/"

UnityLoader is basically the name of the Swift Framework that I am making - basically the framework project.