Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upload to app store " Could not find action, lane or variable 'id'" #21883

Closed
arpitmishra-eaton opened this issue Feb 20, 2024 · 1 comment

Comments

@arpitmishra-eaton
Copy link

arpitmishra-eaton commented Feb 20, 2024

New Issue Checklist

Issue Description

We are uploading an app to Apple app store using Azure pipeline and authenticating it using api_key. but as a result, it gives Could not find action, lane, or variable 'id'. error.

Command executed
YAML:
 - script: >-
                fastlane ios release 
                key_id: $(API Key ID) issuer_id: $(API Issuer ID) filepath: $(path-p8) build_number: ** app_version:** team_id:** app_identifier:'**' metadata_path:'$(Build.SourcesDirectory)/ios/fastlane/metadata/en-US/release_notes.txt'

Fastlane file:

default_platform(:ios)

platform :ios do
 
  desc "Release Testflight Build"
  lane :release do |options|
 
    deliver(
      api_key = app_store_connect_api_key(
      key_id: options[:key_id],
      issuer_id: options[:issuer-id],
      key_filepath: options[:filepath],
      ),
      pilot(api_key: api_key),
      automatic_release: true,
      skip_binary_upload: false, 
      force: true,
      build_number: options[:build_number],
      submit_for_review: true,
      team_id: options[:team_id],
      app_version: options[:app_version],
      app_identifier: options[:app_identifier],
      metadata_path: options[:metadata_path],
      skip_screenshots: true,
      overwrite_screenshots: false,
      precheck_include_in_app_purchases: false,
      # https://github.com/artsy/eigen/blob/faa02e2746194d8d7c11899474de9c517435eca4/fastlane/Fastfile#L131-L149
      submission_information: {
        add_id_info_uses_idfa: false,
        }      
      )
 end
end
Complete output when running fastlane, including the stack trace and command used
 [2024-02-20T18:19:36.5359680Z ##[section]Starting: Promote build to prod release
2024-02-20T18:19:36.5364960Z ==============================================================================
2024-02-20T18:19:36.5365140Z Task         : Command line
2024-02-20T18:19:36.5365260Z Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2024-02-20T18:19:36.5365430Z Version      : 2.231.1
2024-02-20T18:19:36.5365510Z Author       : Microsoft Corporation
2024-02-20T18:19:36.5365630Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2024-02-20T18:19:36.5365790Z ==============================================================================
2024-02-20T18:19:36.7622600Z Generating script.
2024-02-20T18:19:36.7638470Z Script contents:
2024-02-20T18:19:36.7640580Z fastlane ios release  key_id: *** issuer_id: *** filepath: AuthKey_***.p8 build_number: ** app_version:** team_id:** app_identifier:'**' metadata_path:'/Users/runner/work/1/s/ios/fastlane/metadata/en-US/release_notes.txt'
2024-02-20T18:19:36.7641980Z ========================== Starting Command Output ===========================
2024-02-20T18:19:36.7666140Z [command]/bin/bash --noprofile --norc /Users/runner/work/_temp/94bd00a6-9d6a-4c7d-819f-1a538a015601.sh
2024-02-20T18:19:39.8210660Z [18:19:39]: �[33mfastlane detected a Gemfile in the current directory�[0m
2024-02-20T18:19:39.8214370Z [18:19:39]: �[33mHowever, it seems like you didn't use `bundle exec`�[0m
2024-02-20T18:19:39.8215400Z [18:19:39]: �[33mTo launch fastlane faster, please use�[0m
2024-02-20T18:19:39.8216050Z [18:19:39]: 
2024-02-20T18:19:39.8221580Z [18:19:39]: �[36m$ bundle exec fastlane ios release key_id: *** issuer_id: *** filepath: AuthKey_***.p8 build_number: ** app_version:** team_id:** app_identifier:** metadata_path:/Users/runner/work/1/s/ios/fastlane/metadata/en-US/release_notes.txt�[0m
2024-02-20T18:19:39.8222580Z [18:19:39]: 
2024-02-20T18:19:39.8223850Z [18:19:39]: �[33mGet started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile�[0m
2024-02-20T18:19:42.2318360Z [18:19:42]: Sending anonymous analytics information
2024-02-20T18:19:42.2319570Z [18:19:42]: Learn more at https://docs.fastlane.tools/#metrics
2024-02-20T18:19:42.2320410Z [18:19:42]: No personal or sensitive data is sent.
2024-02-20T18:19:42.2322390Z [18:19:42]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
2024-02-20T18:19:42.2648000Z [18:19:42]: �[32m------------------------------�[0m
2024-02-20T18:19:42.2649450Z [18:19:42]: �[32m--- Step: default_platform ---�[0m
2024-02-20T18:19:42.2651600Z [18:19:42]: �[32m------------------------------�[0m
2024-02-20T18:19:42.2654110Z [18:19:42]: �[32mDriving the lane 'ios release' 🚀�[0m
2024-02-20T18:19:42.2723100Z +--------------------------------+
2024-02-20T18:19:42.2724060Z |          �[33mLane Context�[0m          |
2024-02-20T18:19:42.2724710Z +------------------+-------------+
2024-02-20T18:19:42.2728270Z | DEFAULT_PLATFORM | ios         |
2024-02-20T18:19:42.2728680Z | PLATFORM_NAME    | ios         |
2024-02-20T18:19:42.2729010Z | LANE_NAME        | ios release |
2024-02-20T18:19:42.2729790Z +------------------+-------------+
2024-02-20T18:19:42.2730730Z [18:19:42]: �[31mCould not find action, lane or variable 'id'. Check out the documentation for more details: https://docs.fastlane.tools/actions�[0m
2024-02-20T18:19:42.2836760Z 
2024-02-20T18:19:42.2842700Z +---------------------------------------+
2024-02-20T18:19:42.2843460Z |           �[32mfastlane summary�[0m            |
2024-02-20T18:19:42.2844280Z +------+------------------+-------------+
2024-02-20T18:19:42.2845210Z | Step | Action           | Time (in s) |
2024-02-20T18:19:42.2846080Z +------+------------------+-------------+
2024-02-20T18:19:42.2847640Z | 1    | default_platform | 0           |
2024-02-20T18:19:42.2854170Z +------+------------------+-------------+
2024-02-20T18:19:42.2854350Z 
2024-02-20T18:19:42.2854710Z [18:19:42]: �[31mfastlane finished with errors�[0m
2024-02-20T18:19:42.2855840Z �[31m
2024-02-20T18:19:42.2856370Z [!] Could not find action, lane or variable 'id'. Check out the documentation for more details: https://docs.fastlane.tools/actions�[0m
2024-02-20T18:19:42.3131090Z 
2024-02-20T18:19:42.3174770Z ##[error]Bash exited with code '1'.
2024-02-20T18:19:42.3197480Z ##[section]Finishing: Promote build to prod release] 

Environment

 [2024-02-15T06:54:52.4234750Z ### Stack
2024-02-15T06:54:52.4307440Z 
2024-02-15T06:54:52.4408590Z | Key                         | Value                                            |
2024-02-15T06:54:52.4510300Z | --------------------------- | ------------------------------------------------ |
2024-02-15T06:54:52.4611480Z | OS                          | 12.7.3                                           |
2024-02-15T06:54:52.4712620Z | Ruby                        | 3.0.6                                            |
2024-02-15T06:54:52.4814130Z | Bundler?                    | false                                            |
2024-02-15T06:54:52.4915220Z | Git                         | git version 2.43.0                               |
2024-02-15T06:54:52.5016380Z | Installation Source         | /usr/local/lib/ruby/gems/3.0.0/bin/fastlane      |
2024-02-15T06:54:52.5117600Z | Host                        | macOS 12.7.3 (21H1015)                           |
2024-02-15T06:54:52.5218730Z | Ruby Lib Dir                | /usr/local/Cellar/ruby@3.0/3.0.6_1/lib           |
2024-02-15T06:54:52.5301360Z | OpenSSL Version             | OpenSSL 3.1.1 30 May 2023                        |
2024-02-15T06:54:52.5329800Z | Is contained                | false                                            |
2024-02-15T06:54:52.5402820Z | Is homebrew                 | false                                            |
2024-02-15T06:54:52.5438640Z | Is installed via Fabric.app | false                                            |
2024-02-15T06:54:52.5494480Z | Xcode Path                  | /Applications/Xcode_14.2.app/Contents/Developer/ |
2024-02-15T06:54:52.5537880Z | Xcode Version               | 14.2                                             |
2024-02-15T06:54:52.5569630Z | Swift Version               | 5.7.2                                            |

Gem Version Update-Status
fastlane 2.219.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

| ipaddr | 1.2.2 |

| io-wait | 0.2.0 |

| zlib | 2.0.0 |

| resolv | 0.2.1 |

| time | 0.1.1 |

| open-uri | 0.1.0 |

| mutex_m | 0.1.1 |

| net-protocol | 0.1.1 |

| ostruct | 0.3.1 |

| english | 0.7.1 |

| erb | 2.2.0 |

| strscan | 3.0.1 |

| abbrev | 0.1.0 |

| io-console | 0.5.7 |

| tempfile | 0.1.1 |

| delegate | 0.2.0 |

| fileutils | 1.5.0 |

| tmpdir | 0.1.2 |

| base64 | 0.1.0 |

| singleton | 0.1.1 |

| net-http | 0.1.1 |

| open3 | 0.1.1 |

| nkf | 0.1.0 |

| prettyprint | 0.1.1 |

| pp | 0.2.1 |

| find | 0.1.0 |

| yaml | 0.1.1 |

| psych | 3.3.2 |

]

@lacostej
Copy link
Collaborator

lacostej commented Feb 20, 2024

You wrote :issuer-id instead of :issuer_id in your Fastlfile. Fastlane could be better at pointing that there's a syntax error in it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants