Opening a new technological era for the sports and entertainment industry

Fandora Network is a POS Blockchain designed to build an ecosystem that caters to the community of sports and entertainment fans, providing a special infrastructure that allows developers to grow…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Clean XCode assets

A normal problem for all apps developers is that our apps sometimes are too big. This normally is because we don’t use vector assets or we have too much resources in out project and many without using them.

So here is FengNiao to save our lives. FengNiao clean automatically all the not in use resources of our project and is too easy. Analice the code and the XIBs and if the resource name is not in them it’ll be cleaned.

First of all we have to clone the FengNiao repo:

Then in the terminal go to the FengNiao folder:

We have to install FengNiao in our computer. So we type this in the terminal:

When the process is over the fengniao command will be saved in our terminal path so we can use it everywhere.
We can have some help about the program typing: fengniao --help

For start cleaning our project open the terminal and go to the project base folder where is the .xcodeproj and type fengniao here we can see that the program start searching our assets in our project and then you can see a number of resources that fengniao find to clean.
The first time I used it I test one by one all the resources and there was all ok but always is good to have a look.

We have three options:

We can write a Build Phase that automatically clean our project in every build. Go to your project in XCode and look for Build Phase:

Then add a new run script phase:

In the new script we have to type:

This script will clean you resources in all your builds. Maybe you don’t want to clean the resources in all your build so you can mark Run script only when installing this will execute the script only when you make an archive.

Add a comment

Related posts:

C u b a

No he escrito sobre Cuba. Pe. “C u b a” is published by Nadia N. Moreno.

NBA playoff win chances via Bayesian inference

A survey of methods in R with code

Apa Itu Lembah Kekecewaan dan Kenapa Orang Sering Terjatuh Ke Dalamnya?

Setiap kita pasti pernah merasakan kecewa selama perjalanan hidup kita. Entah itu kecewa dengan orang lain, keluarga, kerabat, sahabat atau bahkan kecewa dengan diri kita sendiri. Kekecewaan diri ini…