We learned how to add actions to our
Fastfile and how they can help truly unlock the full power 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!
ensure_xcode_version. This is great when working on a team, (or for our own sanity) to make sure everyone is on the same, known version of Xcode. We can use it like this:
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:
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.
changelog = prompt( text: "Changelog: ", multi_line_end_keyword: "END" ) pilot(changelog: changelog)