Skip to main content

Dependencies.swift

Work in progress

This feature is currently being worked on and is not ready to be used yet.

Learn how to get started with Dependencies.swift here.

import ProjectDescription
let dependencies = Dependencies(    carthage: [        .github(path: "Alamofire/Alamofire", requirement: .exact("5.0.4"))    ],    swiftPackageManager: nil, // work in progress, pass `nil`    platforms: [.iOS])

Dependencies#

A Dependencies manifest allows for defining external dependencies for Tuist.

PropertyDescriptionTypeRequiredDefault
carthageThe description of a dependency that can be installed using Carthage.CarthageDependenciesNonil
swiftPackageManagerThe description of a dependency that can be installed using Swift Package Manager.SwiftPackageManagerDependenciesNonil
platformsList of platforms for which you want to install depedencies.Set<Platform>NoSet(Platform.allCases)

CarthageDependencies#

Contains the description of a dependency that can be installed using Carthage.

PropertyDescriptionTypeRequiredDefault
dependenciesList of depedencies that will be installed using Carthage.[CarthageDependencies.Dependency]Yes

CarthageDependencies Dependency#

Specifies origin of Carthage dependency.

CaseDescription
.github(String, Requirement)GitHub repositories (both GitHub.com and GitHub Enterprise).
.git(String, Requirement)Other Git repositories.
.binary(String, Requirement)Dependencies that are only available as compiled binary .frameworks.

SwiftPackageManagerDependencies#

Contains the description of a dependency that can be installed using Swift Package Manager.

PropertyDescriptionTypeRequiredDefault
packagesList of packages that will be installed using Swift Package Manager.[Package]Yes