How to add a framework inside another framework (Umbrella Framework)

后端 未结 4 1965
旧时难觅i
旧时难觅i 2020-12-02 09:52

I have build a framework using the following tutorial.

And I also got this framework.

I am trying to implement the second Framework inside mine, from what I re

4条回答
  •  伪装坚强ぢ
    2020-12-02 10:27

    I tried doing what @Segev suggested, but I kept receiving the error that the embedded framework files were missing.

    However, doing some additional config I managed to make it work!

    Here's what I did:

    1. Add the embedded framework header file inside the umbrella framework project.
    2. In the umbrella header add: import "EmbeddedFramework.h"
    3. Then import the umbrella framework into the desired project and you wont get more errors

    You will see that the umbrella framework 'Headers' folder will include the 'EmbeddedFramework.h' file

    You can see an example project here:

    • Umbrella framework: https://github.com/AdrianaPineda/FrameworkGOMobileSample
    • Sample app: https://github.com/AdrianaPineda/iOSGOMobileSampleApp

    Hope this helps

提交回复
热议问题