spotify/XCRemoteCache

integrate command failed with multiple `--consumer-eligible-configurations`

Open

#241 opened on Aug 14, 2024

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Swift (54 forks)auto 404
buggood first issuestarter-task

Repository metrics

Stars
 (871 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide