Member-only story

How to create an Umbrella Framework in Swift?

Using Xcode 9.2 and Swift 4

Bittu Davis
5 min readDec 20, 2017

Although Apple discourage creating umbrella framework, there are situations where developer is asked or required to create the same.

So what is an umbrella framework? Why is it used?

Umbrella frameworks are frameworks which contain frameworks within. This can be used in several situations. When you are developing a custom network class which require a different parsing logic or need to implement a custom online payment functionality, you might create an umbrella framework.

Here, we will start with creating a simple framework and we add this framework to another framework making it umbrella framework. We will then create a sample project to incorporate umbrella framework.

Creating sub framework

1 Select Cocoa Touch Framework and give it a name. Here I am giving name as SubFramework

2 Create an Aggregate Target for this framework, so that we can make this as Universal Framework.

3 From the Aggregate target go to Build Phases and create New Run Script Phase

--

--

Responses (12)