---
title: "Weekly Sponsor: Rollout 🚀"
url: https://littlebitesofcocoa.com/sponsor-385
author: Jake Marsh
published: 2016-10-07
topics: []
---

# Weekly Sponsor: Rollout 🚀

By Jake Marsh, October 7, 2016. HTML: https://littlebitesofcocoa.com/sponsor-385

Delighted to welcome an <i>great</i> new sponsor this week, it's [Rollout](https://littlebitesofcocoa.com/campaigns/17/redirect)!

[Rollout](https://littlebitesofcocoa.com/campaigns/17/redirect) allows us to deploy code-level changes to <i>native</i> iOS **apps**, without waiting for **App Store** approval.

We can fix bugs, diagnose issues, and patch code, all without resubmitting!

Let's try this out. After signing in to [Rollout](https://littlebitesofcocoa.com/campaigns/17/redirect), we'll add our first **app**.

<img src="https://media.littlebitesofcocoa.com/sponsor-rollout-1.png" style="max-width: 397px;" />

We'll give our **app** a name, then use [Cocoapods](http://cocoapods.org) to install the _Rollout SDK_.

<img src="https://media.littlebitesofcocoa.com/sponsor-rollout-3.png" style="max-width: 620px;" />

Following the instructions, we'll install the pod like normal, then run a quick script to get our project ready.

Next we'll add 2 lines to our `AppDelegate.m`, to import the SDK and set it up:

``` objc
#import <Rollout/Rollout.h>
```

and

``` objc
- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [Rollout setupWithKey:@"12345abcdefg"];

  return YES;
}
```

That's it, [Rollout](https://littlebitesofcocoa.com/campaigns/17/redirect) is now integrated into our **app.** Neat!

Now let's fast-forward a bit, to a time after we've shipped our imaginary **app** to the **App Store**. We get approved, and we're celebrating the launch and then 😣 doh! Something is causing our **app** to crash on launch. Yikes.

First we'll take a look at our **project**, and find the culprit. In our case, it looks like part of our code is throwing a non-fatal exception when we didn't expect it to. Yuck.

Not to worry though, because our **app** has [Rollout](https://littlebitesofcocoa.com/campaigns/17/redirect) inside.

We'll head to the [Rollout](https://littlebitesofcocoa.com/campaigns/17/redirect) dashboard and add a hotfix.

<img src="https://media.littlebitesofcocoa.com/sponsor-rollout-4.png" style="max-width: 471px;" />

We'll select the <i>"Surround Invocation with Try Catch"</i> type, and test it out.

<img src="https://media.littlebitesofcocoa.com/sponsor-rollout-5.png" style="max-width: 603px;" />

That fixes it! Now that things are fixed up, we can switch our **hot patch** to <i>"Production"</i> mode. (We could even release it gradually to only a percentage of our user base).

This kind of flexibility and freedom really does feel like magic. It's sort of like "insurance" knowing we won't be stuck waiting on **Apple** to get critical changes out to **users**. Neat!

Rollout supports Objective-C apps, Swift is supported (<strong style="color: red;">in beta</strong>) and will be fully released in November.

Last but certainly not least, [Rollout](https://littlebitesofcocoa.com/campaigns/17/redirect) is offering a sweet discount for **LBOC** readers: Use the code `cocoa20` to get <strong style="color: green;">20%</strong> off <i>any</i> paid plan for **6 months!**

A huge thanks to [Rollout](https://littlebitesofcocoa.com/campaigns/17/redirect) for sponsoring this week's Bites!

<p></p>
