Skip to content

build upload fails on XCode Cloud with .xarchive path #2919

@chdsbd

Description

@chdsbd

CLI Version

2.58.0

Operating System and Architecture

  • macOS (arm64)
  • macOS (x86_64)
  • Linux (i686)
  • Linux (x86_64)
  • Linux (armv7)
  • Linux (aarch64)
  • Windows (i686)
  • Windows (x86_64)

Operating System Version

macOS Tahoe 26.0.1 (25A362)

Link to reproduction repository

No response

CLI Command

sentry-cli build upload $CI_ARCHIVE_PATH --build-configuration Release

Exact Reproduction Steps

In my Xcode Cloud ci_scripts/ci_post_xcodebuild.sh file, I try to upload my app like the following:

sentry-cli build upload $CI_ARCHIVE_PATH --build-configuration Release

The CI_ARCHIVE_PATH variable is provided by Xcode Cloud and evaluates to Volumes/workspace/build.xcarchive

https://docs.sentry.io/platforms/apple/guides/ios/size-analysis/

Expected Results

I expect the .xarchive to upload

Actual Results

The command errors:

error: File is not a recognized supported build format (APK, or AAB): /Volumes/workspace/build.xcarchive

Logs

  DEBUG   2025-11-06 19:36:42.474910 -08:00 Starting upload for 1 paths
  DEBUG   2025-11-06 19:36:42.474931 -08:00 Processing artifact at path: /Volumes/workspace/build.xcarchive
  DEBUG   2025-11-06 19:36:42.474994 -08:00 Loaded file with 0 bytes
  DEBUG   2025-11-06 19:36:42.475006 -08:00 Validating build format for: /Volumes/workspace/build.xcarchive
  DEBUG   2025-11-06 19:36:42.475016 -08:00 File format validation failed
error: File is not a recognized supported build format (APK, or AAB): /Volumes/workspace/build.xcarchive

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssue typeCLIProduct area

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions