We would like to inform all developers building for Apple devices that macOS Catalina (10.15.4) is now available as a CI/CD environment on Semaphore.

The following versions of Xcode are pre-installed:

You can select the new macOS image in the Workflow Builder:

Defining a macOS agent with xcode11 on Semaphore
Defining a macOS agent in Workflow Builder

And here’s an example how you may use the new image if you prefer handwritten YAML:

# .semaphore/semaphore.yml
version: 1.0
name: CI Pipeline for Apple devices

agent:
  machine:
    type: a1-standard-4
    os_image: macos-xcode11

blocks:
  - name: "Unit tests"
    task:
      jobs:
        - name: Tests
          commands:
            - xcversion select 1.4.1
           ...

To switch between version simply run: xcversion select <xcode_version>, for example:

xcversion select 11.4.1

Other important tools available in the new macOS image include:

  • Flutter (1.17.1)
  • fastlane (2.148.1)
  • cocoapods…



UCSD DevOps CICD

Continue reading on source link