Installation
How to install and set up zksync2-swift for your project.
Setting up zksync2-swift
in your project is straightforward. Follow these steps to integrate the SDK into your Swift application.
Prerequisites
- iOS: >= 13.0
- macOS: >= 11.0
Check out the Swift installation guide for more information.
CocoaPods integration
To install zksync2-swift
via CocoaPods, add the zksync2-swift
pod to your Podfile:
pod 'zksync2-swift'
Then, run the following command in your terminal:
pod install
Swift package manager integration
To install zksync2-swift
via Swift Package Manager, add zksync2-swift
to your Package Dependencies:
- Open your project in Xcode.
- Select
File > Swift Packages > Add Package Dependency
. - Enter the following URL:
https://github.com/zksync-sdk/zksync2-swift.git
- Choose the latest version of the package.