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

Deliverfile not recognizing apple_id (taken from the docs) #22020

Open
4 tasks done
kassi opened this issue May 14, 2024 · 0 comments
Open
4 tasks done

Deliverfile not recognizing apple_id (taken from the docs) #22020

kassi opened this issue May 14, 2024 · 0 comments

Comments

@kassi
Copy link

kassi commented May 14, 2024

New Issue Checklist

Issue Description

Following the documentation in https://docs.fastlane.tools/actions/produce/#produce

To use the newly generated app in deliver, you need to add this line to your Deliverfile:
apple_id(ENV['PRODUCE_APPLE_ID'])

When I add the following line to Deliverfile,

apple_id(ENV['PRODUCE_APPLE_ID'])

then deliver breaks.

Does this actually refer to app_identifier (bug inside docs), or is this a bug inside deliver?

Command executed

bundle exec fastlane screenshots

with Fastfile

default_platform(:ios)

platform :ios do
  desc "Register app on Apple Developer Portal and AppStore Connect"
  lane :register do
    create_app_online( # produce
      language: "en-US",
      sku: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier).
        split(".").insert(2, "apps").append("ios").join("."),
      enable_services: {}
    )
  end
  lane :load_api_key do
    app_store_connect_api_key(...)
  end

  desc "Generate and upload new localized screenshots and metadata"
  lane :screenshots do
    register
    # disabled to test metadata only
    # capture_screenshots(scheme: ENV["IOS_SCHEME"])
    load_api_key
    
    upload_to_app_store(
      skip_binary_upload: true,
      skip_screenshots: true,
      skip_metadata: false,
      skip_app_version_update: false,
      overwrite_screenshots: true
    )
  rescue => exception
    on_error(exception)
    raise
  else
    on_success("Screenshots created and uploaded")
  end
end

def on_error(exception)
  slack(...)
end
def on_success(message)
  slack(...)
end

and Deliverfile

# from the docs at https://docs.fastlane.tools/actions/produce/#produce
apple_id(ENV['PRODUCE_APPLE_ID'])
languages(['en-US','de-DE'])
Complete output when running fastlane, including the stack trace and command used

Showing All Messages
[03:21:07]: Cruising back to lane 'ios screenshots' 🚘

03:21:08: --- Step: upload_to_app_store ---

03:21:08: Successfully loaded '/Volumes/workspace/repository/fastlane/Deliverfile' 📄

+-----------------------------------------------+

| Detected Values from './fastlane/Deliverfile' |

+-----------------------+-----------------------+

| languages | ["en-US", "de-DE"] |

+-----------------------+-----------------------+

03:21:08: --- Step: slack ---

03:21:08: Successfully sent Slack notification

+------------------------------------+

| Lane Context |

+------------------+-----------------+

| DEFAULT_PLATFORM | ios |

| PLATFORM_NAME | ios |

| LANE_NAME | ios screenshots |

+------------------+-----------------+

03:21:08: Could not find option 'apple_id' in the list of available options: api_key_path, api_key, 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, screenshot_processing_timeout, sync_screenshots, submit_for_review, verify_only, reject_if_possible, version_check_wait_retry_limit, 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

+------------------------------------------------------+

| fastlane summary |

+------+---------------------------------+-------------+

| Step | Action | Time (in s) |

+------+---------------------------------+-------------+

| 1 | opt_out_usage | 0 |

| 2 | default_platform | 0 |

| 3 | Switch to ios load_api_key lane | 0 |

| 4 | app_store_connect_api_key | 0 |

| 💥 | upload_to_app_store | 0 |

| 6 | slack | 0 |

+------+---------------------------------+-------------+

03:21:08: fastlane finished with errors

[!] Could not find option 'apple_id' in the list of available options: api_key_path, api_key, 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, screenshot_processing_timeout, sync_screenshots, submit_for_review, verify_only, reject_if_possible, version_check_wait_retry_limit, 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

Environment

It's running on Xcode Cloud as a ci_post_xcodebuild.sh script.

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

1 participant