iOS / macOS
Distributed as zt.framework. It is essentially just a static library packaged with a C API header (bridging header) include/ZeroTierSockets.h
.
Steps (Xcode):
In your target, go to
build phases
and then add thezt.framework
viaembed frameworks
.In
build phases
also link tolibc++
In your target, go to
build settings
and set yourObjective-C Bridging header
to the actual path corresponding tozt.framework/Headers/ZeroTierSockets.h
. One can use an absolute path by simply dragging the file from the project explorer into this field.See examples/swift or examples/objective-c for examples of how to start ZeroTier.