fastlane: invalid option: --env=staging

Since updating from 2.147.0 to 2.148.0 I now receive: invalid option: --env=staging

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 19 (8 by maintainers)

Most upvoted comments

I am using the Microsoft Task for Azure DevOps Pipelines that does something like this:

fastlane deliver --force -u *** -a com.test -i /Users/username/Documents/myagent/_work/13/a/AppStore.ipa -j ios -m /Users/username/Documents/myagent/_work/13/s/metadata -w /Users/macdev/Documents/myagent/_work/13/s/screenshots -k *** -e *** --submit_for_review true --automatic_release true --app_rating_config_path metadata/ratings.json

and failed with:

[!] Could not find option 'env' in the list of available options: username, app_identifier, app_version, ipa, pkg, build_number, platform, edit_live, use_live_version, metadata_path, screenshots_path, skip_binary_upload, skip_screenshots, skip_metadata, skip_app_version_update, force, overwrite_screenshots, submit_for_review, reject_if_possible, automatic_release, auto_release_date, phased_release, reset_ratings, price_tier, app_rating_config_path, submission_information, team_id, team_name, dev_portal_team_id, dev_portal_team_name, itc_provider, run_precheck_before_submit, precheck_default_rule_level, individual_metadata_items, app_icon, apple_watch_app_icon, copyright, primary_category, secondary_category, primary_first_sub_category, primary_second_sub_category, secondary_first_sub_category, secondary_second_sub_category, trade_representative_contact_information, app_review_information, app_review_attachment_file, description, name, subtitle, keywords, promotional_text, release_notes, privacy_url, apple_tv_privacy_policy, support_url, marketing_url, languages, ignore_language_directory_validation, precheck_include_in_app_purchases, app
##[error]Error: fastlane failed with return code: 1

Strangly in the command line there is no env parameter so I don’t know why it fails with this error. But maybe the output is only a log and is not the command line that is called underneith.

The Task is available here: https://github.com/microsoft/app-store-vsts-extension

In their Repository there is also an issue open to this problem: https://github.com/microsoft/app-store-vsts-extension/issues/152

As a workaround I configure the task to only ever install 1.147.0 instead of the newest version which currently works.

I think we now have to use fastlane action --env staging

Yes, confirmative. Just remove the = do the trick.

Yes @liamnichols it was about --env=foo. So basically fastlane some_lane_using_dotenv --env=foo

@alubeck: Which command had you been running with --env=foo prior to this failing? I’m curious as I authored the change that probably caused this regression so sorry about that