且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在不创建Umbrella框架的情况下构建依赖于另一个的iOS框架

更新时间:2022-12-13 14:24:25

为了任何正在努力解决同一问题的人的利益,答案比我预期的要简单得多。

For the benefit of anyone who is struggling with the same issue, the answer is much simpler than I had anticipated.

框架是动态链接的,只是为您自己的框架向项目添加框架不会导致它嵌入到输出文件中,因此不会生成Umbrella框架。你实际上不需要做任何事情。您自己的框架所需的任何框架都可以包含在您的项目中,以便您可以编译自己的框架,并且还需要包含在使用您的框架的任何项目中。

The Frameworks are linked dynamically and simply adding a Framework to the project for your own framework will not cause it to be embedded in the output file and therefore not generate an Umbrella Framework. You don't actually need to do anything. Any Frameworks that are required by your own Framework can be included in your project so that you can compile your own Framework, and will also need to be included in any projects that utilise your Framework.