Creating a Swift Library
summary
A toy library called Snorlax is built and released as a concrete example: one function that sleeps randomly, plus an async test and docs. The workflow covers creating Xcode frameworks for iOS/tvOS/watchOS/OS X, sharing a shared scheme, CI with Travis CI, packaging for CocoaPods / Carthage / Swift Package Manager, handling Swift snapshots with swiftenv, adding a Linux XCText main shim, adapting tests for non‑Objective‑C runtimes, and tagging semantic versions for releases.
AI-written summary · about
chapters (19)
- 0:00Start
- 1:37ensure some level quality for your library
- 3:15build the swift library
- 4:32put a new xcode ios framework
- 5:50build setting
- 6:50set up our continuous integration service with our library
- 7:23target xcode betas
- 8:21running s code build tests for each of the supported platforms
- 9:46configure the library
- 11:15build your project
- 12:56move our source code into the sources folder underneath snorlax
- 16:20use a specific version of swift
- 19:07start actually going through the process of releasing each version
- 19:29creating an actual release for our library
- 20:18push the pod spec to cocoa pods
- 20:30add some extra sparkle
- 22:39categorize your tags
- 23:11pulling in other dependencies as part of the library
- 24:56store your dependencies
related talks
45mUsing C Libraries in Swift 3
44mSwift Packages - Dependency Management of the Future
25mUse C, C++ and Objective C Libraries in a Swift Project
19mUsing C, C++ and Objective C frameworks in Swift apps
46mHacking With Swift
57mCatching up with Swift
27mBuilding the Server-side Swift ecosystem
45mSwift, Frameworks & Modules, Learnings from CocoaPods
