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