sentry-fastlane-plugin icon indicating copy to clipboard operation
sentry-fastlane-plugin copied to clipboard

Add functionality and tests for iOS mobile app upload

Open runningcode opened this issue 6 months ago • 2 comments

This calls sentry-cli mobile-app upload with a path to the xcarchive. The lane looks like this (also documented in README):

sentry_upload_mobile_app(
  api_key: '...', # Do not use if using auth_token
  auth_token: '...', # Do not use if using api_key
  org_slug: '...',
  project_slug: '...',
  xcarchive_path: './build/MyApp.xcarchive', # Path to your .xcarchive file
)

The xcarchive_path is automatically inferred from SharedValue::XCODEBUILD_ARCHIVE and can be overridden.

See this internal doc for more details on the implementation of this feature: https://www.notion.so/sentry/1f68b10e4b5d80b1a127fb174f87c555

runningcode avatar Jun 13 '25 13:06 runningcode

Regarding testing, I used the hackernews app built locally: https://github.com/EmergeTools/hackernews

You need to use the main branch of the sentry-cli and point the fastlane plugin to that via the SENTRY_CLI_PATH environment variable.

runningcode avatar Jun 17 '25 16:06 runningcode

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Jul 09 '25 00:07 github-actions[bot]

Hey @runningcode, what's the status on this PR?

philprime avatar Jul 23 '25 07:07 philprime

We're waiting on two things,

  1. The service to process the uploads being ready. Launchpad
  2. The sentry-cli's mobile-app upload command being released. This should happen in the next few weeks.

runningcode avatar Jul 23 '25 08:07 runningcode

The sentry-cli was just released (2.53.0) with the build subcommand to upload builds and the Launchpad service to process them is online. The sentry-cli build subcommand is considered experimental and subject to change but it is fully functional.

runningcode avatar Sep 02 '25 07:09 runningcode