Skip to content

Want to know is XCRemote Cache is supported for SPM #244

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

Open
anuragstar opened this issue Apr 30, 2025 · 2 comments
Open

Want to know is XCRemote Cache is supported for SPM #244

anuragstar opened this issue Apr 30, 2025 · 2 comments

Comments

@anuragstar
Copy link

anuragstar commented Apr 30, 2025

Expected/desired behavior
How to use XCRemoteCache with Swift Package Manager (SPM)?
XCRemoteCache does not officially support Swift Package Manager (SPM) as a first-class integration. XCRemoteCache is primarily designed to work with Xcode targets that are part of an .xcodeproj or .xcworkspace.

Want to know weather XCRemote cache support SPM for these use cases

  • Main App Module
  • Feature Modules via SPM
  • Third-Party Libraries via SPM

Relevant integration setup

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

@anuragstar
Copy link
Author

@polac24 Can you please check above requirement

@polac24
Copy link
Collaborator

polac24 commented May 1, 2025

That tool was implemented before Xcode's SPM integration so the readme statement refers to the Package.swift scenario.
However, from what I remember, Xcode's flow was also not covered, as SPM doesn't allow overriding build settings (there is no such a concept there). The only workaround would be starting Xcode with custom args that are passed to the SPM, but that is very hacky.

To answer the question: XCRemoteCache will only work with targets that are defined in .xcodeproj, not those referenced via SPM.

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

2 participants