---
title: "#230: More Fun with fastlane Actions 🤖🎉"
url: https://littlebitesofcocoa.com/230-more-fun-with-fastlane-actions
author: Jake Marsh
published: 2016-04-08
topics: ["Fastlane"]
description: "It's another fastlane Friday! In Bite #140 we began looking at fastlane's actions. We learned how to add actions to our Fastfile and how they can help truly..."
---

# #230: More Fun with fastlane Actions 🤖🎉

By Jake Marsh, April 8, 2016. HTML: https://littlebitesofcocoa.com/230-more-fun-with-fastlane-actions

It's another [fastlane Friday](https://www.littlebitesofcocoa.com/topics/56-fastlane?v=l)! In [Bite #140](https://littlebitesofcocoa.com/140) we began looking at [fastlane's actions](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md). 

We learned how to add actions to our `Fastfile` and how they can help truly unlock the full <i>power</i> of fastlane. Today we'll check out a few more actions and look at why we might want to use them. Let's get started!

First up is `clear_derived_data`. This action does what it says on the tin. (We learned about the **DerivedData** directory and why clearing it can workaround issues in Xcode in [Bite #208](https://littlebitesofcocoa.com/208)). Super handy!

Next, it's `ensure_xcode_version`. This is great when working on a team, (or for our own sanity) to make sure everyone is on the same, <i>known</i> version of **Xcode**. We can use it like this:

``` ruby
ensure_xcode_version(version: "7.2")
```

One action that can be quite versatile is `update_info_plist`. We can specify a **.plist** path, (perhaps our app's "main" Info.plist), and modify just about anything inside, here's an example for changing the name depending on how we're deploying:

``` ruby
update_info_plist(
  plist_path: "path/to/Info.plist",
  display_name: "Spaceships-Beta"
)
```

Finally, let's look at `prompt`. This action lets us collect data from the user, and use it within our **lanes**.

Let's try using it to allow us to enter a changelog each time we upload a build to **TestFlight** with [Pilot](https://github.com/fastlane/fastlane/tree/master/pilot):

``` ruby
changelog = prompt(
  text: "Changelog: ",
  multi_line_end_keyword: "END"
)

pilot(changelog: changelog)
```
