Could not find action, lane or variable 'setup_circle_ci' Error

When running setup_circle_ci action before ios lanes:

before_all do
    setup_circle_ci
  end

it
1- runs ok on my MacBook Pro (running fastlane 2.102.0, ruby: 2.3.3),
2- produces “Could not find action, lane or variable ‘setup_circle_ci’” Error when ran on a mac runner on Circle

Here’s a more complete view of the iOS portion of the Fastfile:

fastlane_version "2.59.0"

platform :ios do

  before_all do
    setup_circle_ci
  end

  lane :dev do
    match(
        type: "development",
        team_id: "XXXXXXXXXX"
        )
    gym(
        export_method: "development",
        output_directory: ".circleci/builds",
        output_name: "ios.ipa"
        )
     crashlytics(
        ipa_path: ".circleci/builds/ios.ipa",
        api_token: options[:cl_api_token],
        build_secret: options[:cl_build_secret]
       )
  end

  lane :staging do
    match(type: "adhoc")
    gym(export_method: "ad-hoc")
  end

  lane :prod do
    match(type: "appstore")
    gym(export_method: "appstore")
  end
end

Also, from Circle’s output, I can see that it’s using the following versions:
fastlane: 2.59
ruby: 2.0.0

Any ideas? Thanks

I’m not familiar with iOS, but is it worth showing more of your Fastfile so readers can check if it is in line with the docs?

Makes sense. I’ve updated the question.

1 Like

That’s really odd.

If you comment out setup_circle_ci and add a test lane like this,

lane :test
puts ‘test’
end

Does this get executed? I am wondering if any of your lanes can get executed on Circleci ?

(I only do Android fastlane, so I am not familiar with the iOS fastlane setup. )

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