Files
Jonathan Nobels 727bd68619 swift: add iOS simulator support
updates tailscale/tailscale#15802

This adds the required targets to build for the iOS
simulator.   We support both ios, ios-sim, and ios-fat
framework targets.

The sample app is updated to link in the ios-fat version
so it can be run on any target device or sim.
2025-05-22 10:50:34 -04:00
..
2025-05-22 10:50:34 -04:00

TailscaleKitHello

Instructions

First build TailscaleKit for the platform you wish to target:

From /swift:

$ make macos
$ make ios-fat

The ios target expects the universal xcframework produced by make ios-fat and can be run on either a device or the simulator.

In TailnetSettings, configure an auth key and a server/service to query.

let authKey = "your-auth-key-here"
let tailnetServer = "http://your-server-here.your-tailnet.ts.net"

Run the project. Phone Home. The output should be the response from the server.