Skip to main content

iOS Swift Package Manager Installation

Using Xcode UI

  1. In Xcode, go to File → Add Package Dependencies
  2. Enter the Told package URL in the search bar
  3. Select the version and click Add Package
  4. Choose the target to add the package to

Using Package.swift

Add Told to your Package.swift:

dependencies: [
.package(url: "TOLD_PACKAGE_URL", from: "X.X.X")
]

Then add it as a dependency to your target:

targets: [
.target(
name: "MyApp",
dependencies: ["Told"]
)
]

Initialize

See iOS SDK Installation for initialization code.