Building iOS apps

Setting up an iOS app in Nevercode

This tutorial guides you through setting up your iOS app in Nevercode. Nevercode doesn't require any kind of additional software from your side and you don’t even have to write any tedious configuration files full of technical boilerplate. We’ll scan your repository and from what you have there our builders find everything they need. You’ll just have to confirm what configuration you want to build.

The guide covers how to:

Add a new app

  1. Click Add a new app on Nevercode dashboard.
Nevercode dashboard

Nevercode dashboard

  1. Select the appropriate option for where your app repository is hosted. See Specifying app repository for details. If you choose to add the repository manually, see Defining checkout URL and Authenticating repository access for details.

Define build configuration

After specifying app repository, Nevercode takes a first look at it by listing the branches in this repository. The next step for you is to select the branch you want Nevercode to scan for projects.

  1. Select a branch from the dropdown that Nevercode should scan. Note that you can change the branch later if needed.
  2. Click Scan branch. Nevercode scans the repository from the specified branch. This includes cloning the repository, looking for projects from it and searching for the configurations. All these actions can be monitored real-time from your browser via the live log window.
    If you are using Cocoapods to manage the dependencies of your project, please refer to the page on Using CocoaPods before continuing to read this section.
  3. Once scanning the branch has finished, you need to select a project or a workspace. Projects are containers for code, resources and different build settings. Workspaces are containers of different projects.
  4. Based on the previous selection of project or workspace, you will need to select either a Target (projects) or a Scheme (workspaces).
Build configuration

Build configuration

  1. Enable the appropriate build options by checking the corresponding boxes.
  2. Finally, click the Save and start build button. Nevercode will start the very first build of your app and you can monitor the real-time logs.

Sign code

The very first version of your app on Nevercode is built without code signing. See how to provide the code signing files to enable installing your app on real devices.

Set up Git hooks

By setting up Git hooks, you can have Nevercode automatically build your app every time you push changes to the repository. For instructions, please refer to Building automatically (Git hooks).

Run tests

Setting up testing in Nevercode is 100% automatic. When you submit your repository, we scan the selected configuration for tests, and if there are any tests present, we run them for every push.

The test report screen in build overview shows you a simple overview of all passed and failed tests, including the failure reason, so you can quickly identify what’s broken.

Read more about supported test frameworks and how to configure tests for iOS on Nevercode.

Publish your build artefacts

Nevercode supports publishing your iOS applications to several distribution channels.

Manage build versions

To make your build version management easy, Nevercode exports two environment variables that you can use in your build scripts: NEVERCODE_BUILD and NEVERCODE_BUILD_NUMBER. You can read more about it from Incrementing iOS app version.

Building iOS apps

Setting up an iOS app in Nevercode