Sources taken from:
https://opensource.apple.com/tarballs/tapi
https://github.com/apple/swift/tree/swift-4.2-branch
https://github.com/apple/swift-clang/tree/swift-4.2-branch
CMake, Python and GCC or Clang
[INSTALLPREFIX=<prefix>] ./build.sh
./install.sh
TAPI is a Text-based Application Programming Interface. It replaces the Mach-O Dynamic Library Stub files in Apple's SDKs to reduce the SDK size even further.
The text-based dynamic library stub file format (.tbd) is a human readable and editable YAML text file. The TAPI projects uses the LLVM YAML parser to read those files and provides this functionality to the linker as a dynamic library.