0

I am building a new UI framework, let's call it a framework2, there is already existing UI framework framework1, unfortunately can not add or make more changes to that framework1(Provide by a vendor, and we can't have source code access of it.), but now we want to build framework2 on top of framework1, in framework 2 we will be using few of the components developed in framework1 and extend them.

So can we add framework 1 into framework 2?, and then distribute framework 2 as XCFramework via swift package?

I read that iOS doesn't support the umbrella framework concept, is this the case here

Checked different stack overflow links, and blogs, but couldn't find anything concrete.

so that means I should add framework1 as a binary dependency in framework2 using SPM. PFA screenshot Framework 2 dependecny

12
  • Not tried it, but technically I can't think why not. You might need to check the third-party licensing though. Why not knock up a simple test project and try it? Commented Aug 2, 2023 at 23:10
  • 1
    @flanker Thanks for the reply, I wanted to confirm this as forums.swift.org/t/xcframework-with-hidden-dependency/50840 it says nested frameworks not allowed in iOS. Commented Aug 2, 2023 at 23:33
  • No but a package can contain frameworks Commented Aug 3, 2023 at 1:14
  • @loremipsum Could you please check the attached screenshot, are you suggesting that I should add framework1 as a binary dependency in framework2 using SPM? Commented Aug 3, 2023 at 1:53
  • No you can add Framework1 to your own SPM, not Framework2. Framework2 is replaced by a Package. Commented Aug 3, 2023 at 2:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.