cache

package
v1.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const SwiftPackagesStateInvalid = "Could not resolve package dependencies:"

SwiftPackagesStateInvalid is the partial error message printed out if swift packages cache is invalid. Can be used to detect invalid state and clear the path returned by SwiftPackagesPath. xcodebuild: error: Could not resolve package dependencies:

The repository at [path] is invalid; try resetting package caches

Variables

This section is empty.

Functions

func CollectSwiftPackages

func CollectSwiftPackages(xcodeProjectPath string) error

CollectSwiftPackages marks the Swift Package Manager packages directory to be added the cache. The directory cached is: $HOME/Library/Developer/Xcode/DerivedData/[PER_PROJECT_DERIVED_DATA]/SourcePackages.

func SwiftPackagesPath

func SwiftPackagesPath(xcodeProjectPath string) (string, error)

SwiftPackagesPath returns the Swift packages cache dir path. The input must be an absolute path. The directory is: $HOME/Library/Developer/Xcode/DerivedData/[PER_PROJECT_DERIVED_DATA]/SourcePackages.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL