Swiftpack.co -  oboupo/tdlib-spm as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
oboupo/tdlib-spm
Pre-build Swift Package for https://github.com/tdlib/td
.package(url: "https://github.com/oboupo/tdlib-spm.git", from: "v1.7.0")

SPM

Once you have your Swift package set up, adding TDLib as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/oboupo/tdlib-spm.git", .upToNextMajor(from: "1.7.0"))
]

Usage:

import tdjson

Sample of code can be found in official tdlib repo

Building

Below are instructions for building tdjson.xcframework.

To compile tdjson you will need to:

  • Install the latest Xcode via xcode-select --install or downloading it from Xcode website. It is not enough to install only command line developer tools to build TDLib for iOS.
  • Install other build dependencies using Homebrew:
brew install gperf cmake coreutils
  • Build TDLib for iOS, watchOS, tvOS and macOS:
./xcframework.sh

This may take a while, because TDLib will be built about 10 times. Built framework will be store in build directory.

More

Other documentation can be found at https://github.com/tdlib/td/tree/master/example/ios.

GitHub

link
Stars: 2
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

v1.7.0
16 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API