4

I'm new to iOS Programming.

I want to make 'A' and 'A2' framework and give it to distribute to use every iOS application developer.

Both 'A' and 'A2' uses 'B' Framework, and 'B' uses 'C' Framework. But I want to hide embedded frameworks('B' and 'C') from developers who use my framework so that anyone won't have to know about it.

can embedded Swift "module" be hidden like internal classes or structs?

Thank you in advance.


This is not a question about creating "embedded frameworks" in Xcode. I just don't want anyone to import my embedded frameworks ('B', 'C') directly

import A // OK
import B <- problem
import C <- problem
...
override viewDidLoad() {
    super.viewDidLoad()

    let A = A.default // OK

    A.someAPI() // OK

    B.someAPI() <- problem
}
Steve Lee
  • 53
  • 5
  • 2
    Possible duplicate of [Embedding a framework within a framework (iOS 8+)](https://stackoverflow.com/questions/27868259/embedding-a-framework-within-a-framework-ios-8) – PGDev Jun 04 '17 at 17:35
  • It is not intuitive with Xcode and the link given by @PGDev is solving it. – jboi Jun 04 '17 at 18:31
  • I already know how to embed frameworks :( The problem is I can 'import B' or even 'import C' in the source code which includes 'A' Framework. – Steve Lee Jun 04 '17 at 23:47

0 Answers0