How to embed framework in framework.

Hi

I have subframework_A already available.

I am curretly building new framework which need to embed subframework_A to ue it's functionality.

Can any one help me how to do this?


I tried creating new framwork with embedded subframework_A. When I write test case for new framework it fails with below error

The bundle “NewFrameworkTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.

Library not loaded: @rpath/subframework_A.framework/subframework_A



Thanks in advance.

Replies

Unless you're on macOS, nesting frameworks is not supported.

Thanks for response.

Is it possible to write testcase for new framework? If yes, Please let me know the step.

You can add unit tests by creating a new unit test target and setting the test target as one of the options when you create the new testing target.

After adding test case in NewFrameworkTests, I get below error


The bundle “NewFrameworkTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.

Library not loaded: @rpath/subframework_A.framework/subframework_A


Note: NewFramework depends on subframework_A. And both are different projects.