Install Swift SDK (Generated)
Install Swift SDK (Generated)
You can use Box Swift SDK to call Box APIs in a Swift project.
Learn more about Swift SDK on GitHub
Swift Package Manager
Swift Package Manager is a tool for managing the distribution of Swift code. It is integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
To add a dependency to your Xcode project:
- Select File > Add Package Dependency in your Xcode project.
- Click the plus icon > Add Package Collection.
- Enter the following repository URL:
https://github.com/box/box-swift-sdk-gen.git
and click Load.
Alternatively you can add a dependency to the dependencies value of your Package.swift
.
For detailed instructions, please see the official documentation for Swift Package Manager and XCode documentation.
Carthage
Carthage is a decentralized dependency manager which builds your dependencies and provides you with binary frameworks.
To add a dependency to BoxSdkGen
:
- add the following line to your
Cartfile
:
git "https://github.com/box/box-swift-sdk-gen.git"
- Run:
carthage bootstrap --use-xcframeworks
- Drag the built
xcframework
from Carthage/Build into your project.
For more detailed instructions, please see the official documentation for Carthage.