Fastlane scan error: No such file or directory - xcodebuild

ios
fastlane

#1

I’m trying to migrate my iOS project to Circle 2.0 but I’m facing the following error during the fastlane scan step:

Here’s my config.yml:

version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.3

    macos:
      xcode: "9.0"

    shell: /bin/bash --login -o pipefail

    steps:
      - checkout

      - run:
          name: Fetch CocoaPods Specs
          command: |
            curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf

      - run:
          name: Install CocoaPods
          command: |
            bundle install
            bundle exec pod install

      - run:
          name: Build and run tests
          command: bundle exec fastlane scan
          environment:
            SCAN_DEVICE: iPhone 8
            SCAN_SCHEME: VivaRealIPhoneSearcherApp

Does someone have any idea why it is happening? It looks like CircleCI is unable to find xcodebuild in the machine. CircleCI 1.0 is working as expected in the same project.

Thanks in advance,

Rodrigo


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.