ios-build-action icon indicating copy to clipboard operation
ios-build-action copied to clipboard

Is there support for Swift-Package-Manager dependency caching capabilities?

Open SumoSimo opened this issue 4 years ago • 3 comments

Hi there.

I'd like to make use of caching capabilities for swift-package-manager dependencies (e.g. https://github.com/actions/cache). Is there a way to specify the path to which dependencies are resolved? Please see the example below, specifically:

-clonedSourcePackagesDirPath SourcePackages

xcodebuild \
        -project MyProject.xcodeproj \
        -scheme MyProject \
        -clonedSourcePackagesDirPath SourcePackages \
        -destination 'platform=iOS Simulator,name=iPhone 11 Pro,OS=14.2' '-only-testing:MyProjectTests'

Much appreciated.

SumoSimo avatar Dec 15 '20 15:12 SumoSimo

Sorry for the late response. To do that, you need to add cloned_source_packages_path to build_app. I will add that in the new year. Until then, please fork it and use it. (PR also welcome)

yukiarrr avatar Dec 28 '20 18:12 yukiarrr

any updates on this?

sisoje avatar Apr 08 '21 13:04 sisoje

@SumoSimo @sisoje Sorry for the late response. In v1.4.0, it is now possible to specify the cloned_source_packages_path.

yukiarrr avatar Apr 19 '21 14:04 yukiarrr