A tool to interact with Swift toolchains
- Install Theos
- Clone this repository somewhere on your computer
Download a .pkg toolchain from here, and run the following command:
make </path/to/toolchain.pkg>
make package [V=<version>]
If you don't set V
, the latest major version will be used (eg. 4).
make install THEOS_DEVICE_IP=<ip>
make tbd
This command will generate tbd files for all unpacked libswift versions, and store them in tbds/<version>
.
If Theos does not already contain the required Swift tbd files, you may run the following command to add them:
cp -r tbds/VERSION $THEOS/vendor/lib/libswift/
Replace VERSION
with the Swift version of which you wish to copy the tbd files.
This repository also comes with a template which you can use as a starting point to build a Swift app. To install it, run the following command:
curl https://github.com/kabiroberai/theos-templates/raw/application_swift/iphone_application_swift.nic.tar -Lo $THEOS/templates/ios/theos/application_swift.nic.tar