Before Swift ABI (the binary application interface) is stabilized (I guess another year or two), the only way to distribute libraries that will work in different versions of Xcode is to distribute the source code. Cocoa pods and Carthage are good tools to simplify the distribution of libraries, but for Swift code, they will still rely on available source code.
You might have Cocoapod that detects the version of Xcode it starts up with, and then downloads and provides the correct build for your library, but you still need to create libraries for all versions of Xcode that you want to maintain and recompile every time Apple is releasing a new Xcode, but at least the user will not need to download the new version manually.
Joseph Lord
source share