Connect your pipeline

Connect your Mac. Add a runner.

After delivery, find your node address and remote access credentials in the console.

Verify the connection first, then set up Xcode and code signing. Finally, register the Mac in your team’s build queue. Use the graphical interface for initial setup and SSH for day-to-day automation.

Already have a node? Verify its address, username, and access port. Don’t reuse connection details from an old machine.

Node setup checklist

Add the node to your build queue

Follow these steps in order, and check the result at each stage.

  1. 01
    Verify connection

    Check the host fingerprint and confirm that you can log in with your key.

  2. 02
    Check environment

    Verify the Xcode path, signing identity, and project dependencies.

  3. 03
    Test a job

    Run a test job before enabling the production pipeline.

macOS · ARM64 Test manually, then hand off to CI
Set up SSH access

Set up keys, then harden SSH

Use SSH as your build node’s everyday access method. Verify the host on first connection, and keep an active session open whenever you change security settings.

  1. 01

    Create a key

    Generate a dedicated Ed25519 key on your workstation and protect it with a passphrase. Install only the public key on the node. Keep the private key on your machine or in your team’s controlled secrets store—never in the repository.

  2. 02

    Verify the host

    Get the node address, username, and port from the console. On first connection, verify the host fingerprint through a trusted channel. If it changes, check whether the node was reinstalled or replaced before removing the old record and reconnecting.

  3. 03

    Test login

    Add the public key to the target user’s authorized_keys and check directory and file permissions. Open a new terminal and confirm you can log in with the specified private key before changing password authentication settings.

  4. 04

    Harden SSH access

    Once key-based authentication works, disable SSH password login. If you change the port, also check how the macOS service listens and which ports the network allows. Changing the port in the sshd configuration alone does not verify connectivity.

Run these checks first

Set the variables below in your local terminal using the actual values from your delivery details. If you use a custom private key path, make sure it points to the private key, not the public key file.

ssh-keygen -t ed25519 -f ~/.ssh/pullmac_ci

read -r -p "Node address: " MAC_HOST
read -r -p "Node username: " MAC_USER
read -r -p "SSH port: " MAC_PORT

ssh -i ~/.ssh/pullmac_ci -p "$MAC_PORT" "$MAC_USER@$MAC_HOST"
Set up the desktop environment

Open the desktop once to finish setup

VNC or screen sharing is useful for setting up GUI tools, importing certificates, and confirming permissions. Before running unattended builds, verify that these steps work under the runner’s actual user account.

Set up Xcode

Use the connection method provided in the console to access the macOS desktop. Launch Xcode and complete the license confirmation and any required component installations. Keep the toolchain version aligned with your project; don’t switch versions just before a release build.

Check the version and Developer directory from the command line. Xcode opening in the GUI doesn’t guarantee that CI uses the same version.

xcodebuild -version
xcode-select -p

Import signing assets

Import your team-authorized certificate and private key into the build user’s keychain, and install provisioning profiles as required by the project. The private key must be accessible to that user; otherwise, the runner may not find the signing identity if you import it under an administrator account.

Store the Fastlane match decryption passphrase and repository credentials in protected CI variables. Never print secrets in build logs. Configure temporary keychain unlocking to match the job’s lifecycle.

security find-identity -v -p codesigning
For Windows teams

Keep coding on Windows; build iOS on your Mac

Keep your local editor and collaboration workflow. Run iOS builds, signing, and exports on the cloud Mac; use Windows to commit code, trigger jobs, and receive the results.

  1. 01

    Sync versions

    Push your Flutter project to the team repository, then check out the same commit on the Mac. Keep the dependency lockfile and record the Flutter, Xcode, and project tool versions so your local setup and build node use the same dependencies.

  2. 02

    Check dependencies

    Run Flutter’s environment checks on the Mac, then install project dependencies. For native iOS dependencies, set up CocoaPods as specified by the repository. Don’t copy build caches or local dependency directories directly from Windows.

  3. 03

    Export artifacts

    First run an unsigned build to confirm compilation succeeds, then export the ipa using your team-approved signing configuration. Use your team’s controlled release process to upload to a distribution channel; never put release credentials in source code.

Verify each step separately

Rule out build issues first, then check signing and export. The final command requires a configured signing environment and export options. Adjust the filename to match your repository’s setup.

flutter doctor -v
flutter pub get
flutter build ios --release --no-codesign
flutter build ipa --release --export-options-plist=ExportOptions.plist
Add the node to your job queue

Set a label, then register the runner

Give the node a stable purpose, such as pullmac-ios. Add platform, architecture, and toolchain requirements to your scheduling rules so iOS jobs don’t run in a different environment.

Connect GitHub Actions

Get the macOS ARM64 runner registration command from your team or organization’s runner settings, then follow the prompts on the node. Use the registration token only for setup; don’t add it to your repository or long-lived scripts.

Keep the default platform labels and add a purpose-specific label. Start by limiting access to trusted repositories. Before enabling continuous operation, make sure the job’s user can access Xcode, the keychain, and the working directory.

jobs:
  ios:
    runs-on:
      - self-hosted
      - macOS
      - ARM64
      - pullmac-ios
    steps:
      - run: xcodebuild -version

Check: The test job runs on this node, and the Xcode version in the log matches your expectations.

Connect GitLab

Create and register a runner using the procedure for your GitLab version. Choose an executor suited to the native macOS toolchain. With the shell executor, jobs run directly in the runner user’s environment, so accept trusted code only.

Add the pullmac-ios tag, then restrict protected branches and project access according to your team’s policy. Mark signing variables as protected and limit their exposure; log masking alone isn’t enough.

ios_check:
  tags:
    - pullmac-ios
  script:
    - xcodebuild -version
    - xcode-select -p

Check: The pipeline no longer waits for a matching tag, and the working directory belongs to the expected build user.

Connect Jenkins

Create a dedicated agent in Jenkins and connect it using your team’s approved SSH or inbound method. Check the Java version required by the controller, credential permissions, and agent working directory. Don’t run jobs under a shared administrator account.

Assign a purpose label and start with one executor. Measure peak memory and disk usage with a real project before increasing concurrency; don’t infer the number of jobs from chip performance alone.

pipeline {
  agent { label 'pullmac-ios' }
  stages {
    stage('Check') {
      steps {
        sh 'xcodebuild -version'
      }
    }
  }
}

Check: The agent is online, the test stage runs successfully, and you’ve verified how it reconnects after a restart.

Choose a connection location

Choose a node based on your workflow

Desktop work depends on round-trip latency; automated builds depend more on dependency downloads and artifact transfers. These are reference ranges for each node’s service region, not measurements from your current network.

Service regions and connection options for five available nodes
Node Service region Reference round-trip latency Best for
Singapore Southeast Asia 20–50 ms Remote desktop access across the service region; SSH builds and artifact transfers
Tokyo East Asia 30–60 ms GUI debugging; automated builds and dependency syncing
Seoul Northeast Asia 30–50 ms Desktop setup; CI runners and build artifact transfers
Hong Kong South China and Southeast Asia 20–40 ms Interactive desktop access; command-line builds and artifact retrieval
US East Eastern North America and Western Europe 25–35 ms Desktop access for regional teams; automated builds close to team code and artifact workflows

These are reference ranges; actual results depend on your network.

When choosing a node, also consider the location of your team’s repository and artifact destination. Don’t rely on latency estimates to judge large-file throughput. Before migrating, test the connection with your own dependency downloads and artifact uploads. Check the console for current node availability.

Retrieve your build artifacts

Take your ipa and symbol files with you

A build delivers more than an app package. Associate artifacts with the commit and toolchain version so you can investigate crashes and reproduce release builds later.

Archive build results

After a successful job, archive the ipa, its matching dSYM, the commit ID, and the Xcode version. If you need to reproduce the export, retain the xcarchive according to your team’s policy. Don’t rely on temporary directories that the next build may overwrite.

Prefer your existing CI artifact storage, with access controls and a retention period. Don’t include certificates, private keys, keychains, or configuration files containing secrets in artifact bundles.

Naming tip: Use a consistent naming scheme for the project, short commit ID, and build number so each ipa maps to its dSYM.

Transfer files reliably

For occasional downloads, use SFTP or SCP. For larger archives, choose a tool that supports resumable transfers. On repeat syncs, transfer only changed artifacts and exclude dependency caches, temporary files, and unrelated logs.

Finish archiving before starting a transfer to avoid copying a file that’s still being written. After transfer, verify the file size and SHA-256 checksum. Once you confirm the remote copy is saved, clean up the node according to your team’s retention policy.

Transfer note: Remote desktop clipboards aren’t suitable for large file delivery. Transfer build artifacts separately using a file transfer method.

Troubleshoot connection issues

Troubleshoot the connection layer by layer

First identify whether the issue is with the network, authentication, desktop session, or build process. Keep the exact error and note when it occurred. Avoid changing several settings at once.

SSH keeps timing out. What should I check?

First, check the instance status in the console and verify the address and port. Then check whether the port is reachable from your machine, and rule out outbound restrictions from your company network or local security software. Finally, check the node’s remote login service and network rules. If you changed the port, make sure the port in use matches the one allowed through the network.

If you see Permission denied, authentication has been reached. Check the username, private key, and public key permissions instead of continuing to troubleshoot the network. You can use ssh -v to inspect the connection process. Remove sensitive information before sharing logs.

The desktop is blank, but SSH works. What should I do?

Disconnect and reconnect to the desktop, then verify the connection target and credentials. Lower the client’s resolution and color depth to check whether the display simply needs refreshing. Finally, check the desktop session and access permissions. Don’t force a restart while a build is running.

Note the client name, error message, and whether SSH is reachable. To restart or change the instance state, use the instance details in the console. First make sure there are no unfinished tasks you need to keep.

Connected from Windows, but shortcuts or typing are wrong?

Test letters, symbols, and key combinations in a plain text editor to tell a keyboard layout issue from an application shortcut issue. Check how the remote client maps Ctrl, Alt, and the Windows key, then verify the macOS input source. Change one setting at a time.

Before pasting commands into a terminal, check quotation marks, hyphens, and line breaks. Don’t repeatedly transfer private keys or passphrases via the clipboard; store access credentials using a method approved by your team.

Manual export works, but the runner can’t find the signing identity?

Check the job’s user, Xcode path, and available signing identities, then compare them with the manual build environment. The desktop user and background process may have different keychain search lists, unlock states, and file permissions.

Make sure signing assets are installed for the right user and that protected variables are available on the current branch. Reproduce the issue with a single test job first. Don’t send an entire keychain or private key as an attachment.

Register a runner and start building today

Prepare your project and signing workflow, then add a dedicated build node to your queue.