Skip to content

integrate command failed with multiple --consumer-eligible-configurations #241

@jkmathew

Description

@jkmathew

My integration setup

  • CocoaPods cocoapods-xcremotecache plugin
  • Automatic integration using xcprepare integrate ...
  • Manual integration
  • Carthage

Expected/desired behavior
The xcprepare integrate should work with multiple --consumer-eligible-configurations.

Minimal reproduction of the problem with instructions

Run the integrate command with comma-separated consumer-eligible-configurations

Consumer Logs

Filtering the log data using "sender == "xcprepare""
Timestamp               Ty Process[PID:TID]
2024-08-14 17:24:49.475 E  xcprepare[59946:3ceea] XCRemoteCache cannot be initialized with a consumer mode. Error: statusError("status 64: Error: Unexpected argument \134'Release\134'\134nUsage: xc-prepare-main prepare [--configuration <configuration> ...] [--platform <platform> ...] [--xcode <xcode>] [--format <format>]", 64).

I ran this command,

XCRemoteCache/xcprepare integrate --input MyProj.xcodeproj --mode consumer --consumer-eligible-configurations "Debug,Release"

No matter what is the value of consumer-eligible-configurations if there is a comma, it fails.
If I run separately it either runs without error or fails with noArtifactsToReuse depending on the availability of artefacts, Which is expected.

Environment

  • XCRemoteCache: v0.3.29
  • cocoapods-xcremotecache: NA
  • HTTP cache server: AWS
  • Xcode: 15.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions