How to create a white label iOS app (Part 5)
Tags: ios, swift, xcode
Published: 2020-09-11 19:26:09

---
title: How to create a white label iOS app (Part 5)
published: true
date: 2020-09-11 19:23:29 UTC
tags: iOS,swift, xcode
canonical_url: https://www.rockandnull.com/how-to-create-a-white-label-ios-app-part-5/
---

On [Part4](https://dev.to/mavris/how-to-create-a-white-label-ios-app-part-4-44gf) we discussed how to use `.plist` files with different values for each target. The `.plist` approach will help us build the brand for each target, avoiding the boilerplate code.

We couldn't build the brand for each target without discussing the target's app icons. There are two ways to use a different set of App icons and we are going to discuss them both.

You can download the project [here](https://github.com/Rock-and-Null/iOS---WhiteLabel/releases/tag/Part4) as we left it on [Part4](https://github.com/Rock-and-Null/iOS---WhiteLabel/releases/tag/Part5).

The first and easiest way is to use the `Assets.xcassets` for every target. Just go to plus sign and select **App Icons & Launch Images -> New iOS App Icon** and name it `TargetName-AppIcon`. Then, at the target's   **General** tab and select the `TargetName-AppIcon` in **AppIcon Source.** That's it!

<iframe width="100%" height="386" scrolling="no" border="no" allowtransparency="true" frameborder="0" style="border:none!important;width:100%!important;height:386px;position:relative;" src="https://upscri.be/ltv52r?as_embed=true"></iframe>

The second way is to create a different `.xcassets` for each target, that will contain only the `AppIcon` of the specific target. For our project, we are going to create a new asset catalog called `TestCoffee.xcassets` (under TestCoffee resource folder) with target membership only for TestCoffee target and then we are going to set it as **AppIcon Source** in its **General** tab. Now, we have to create an AppIcon called `AppIcon`.  The tricky part now, is to set the appropriate AppIcon for each target. For some reason, Xcode won't let you set it directly but I found a workaround. You need to select "Don't use assets catalog", then select any other file in Xcode and then go back to the target's **General** tab. You will notice that a new button appeared called "Use assets catalog". Tap on that and select the appropriate asset, then select "Migrate". Now you can select the AppIcon from the specific Asset Catalog. Repeat the same procedure for every target.

![How to create a white label iOS app (Part 5)](https://www.rockandnull.com/content/images/2020/09/Screenshot-2020-09-11-at-10.11.25-PM.png)<figcaption>The structure for each target</figcaption>

I personally prefer the second way because is a cleaner structure especially if you have a big number of targets.

That's the end of the "White label" series! I hope you found it helpful! If you have any other part that you want me to cover or you want to discuss, please don't hesitate to drop me an [email](mailto:hello@rockandnull.com).

You can find the final project [here](https://github.com/Rock-and-Null/iOS---WhiteLabel/releases/tag/Part6).

Happy coding!

[Say hello](mailto:hello@rockandnull.com) or [tweet us](https://twitter.com/rockandnull)!

[How to create a white label iOS app (Part 1)](https://www.rockandnull.com/how-to-create-a-white-label-ios-app/)
[How to create a white label iOS app (Part 2)](https://www.rockandnull.com/how-to-create-a-white-label-ios-app-part-2/)
[How to create a white label iOS app (Part 3)](https://www.rockandnull.com/how-to-create-a-white-label-ios-app-part-3/)
[How to create a white label iOS app (Part 4)](https://www.rockandnull.com/how-to-create-a-white-label-ios-app-part-4/)
[How to create a white label iOS app (Part 5)](https://www.rockandnull.com/how-to-create-a-white-label-ios-app-part-5/)