Develop Fast iOS App Using This Plugin
Develop Fast iOS App Using This Plugin
Advertisement

The integration of a high number of cocoapods in your iOS application leads to a relatively slow application. I was searching over the internet when suddenly I found this plugin. It is a Cocoapods plugin to merge dependencies (or pods) used by your Xcode project, to reduce the number of dynamic frameworks your app has to load on app startup.

Pod-merge introduces a new file to your project; the MergeFile, and hooks into the pre-install phase of pod install to merge your dependencies.

Installation Steps

It is highly recommended to use bundler for using this plugin. So, open your terminal and type the following

Now, open your Xcode project in the terminal and type the following

This command will create a file named Gemfile, open this file and add the following

Now, run the following command

Let’s move to the next step, create a file called MergeFile which will hold the pods grouped like the following

Add the following line to the top of your Podfile

How to use

Now, also add the libraries group to your Podfile like the following. Notice that the “MargedPods” directory is automatically generated.

That’s it, let the magic begin by running 

Don’t miss the chance to test it, for more information navigate to plugin GitHub through this link.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.