How can iOS development incorporate the framework into the framework?

Asked 1 years ago, Updated 1 years ago, 412 views

We are developing a library (framework) that is iOS.
I would like to include another framework within this framework (with another framework as C)
However, when I tried to build B and put it into the host, the following error occurred (with host app as A)

dyld[932]:Library not loaded:@rpath...

Simply put, B<-C->A

I have visited several sites, but I could not find a solution, I have heard that there is an implementation method called Static Library, but I do not know how to implement it.

Sites referenced:

Note: You can also dismantle the framework you are trying to import and put it into the framework you created, because you can interact with the author of the framework.
I don't mind giving you a hint, so please let me know.

The reason why I put a framework in the framework is because I want to provide it to others as a single framework.

By the way, the framework you gave me was built in bazel and there is no source code.

swift ios macos objective-c framework

2022-09-30 22:04

1 Answers

It's not a direct answer, but I heard that iOS applications are played during the screening stage with Framework in Framework.
 Therefore, if Framework B contains Framework A, it will be played in the examination, so I think it is correct to specify that Framework A should also be linked in the Framework B description.

As for dismantling the framework mentioned in the comment, I think it would be better to obtain the source of the framework to be incorporated as a project and compile it by adding the source of the framework you want to create.On the contrary, you can incorporate the source of the framework you created into your project.In any case, both sources are required to combine into a single framework.


2022-09-30 22:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.